• lua function to get the number of a specific entity owned by player ?
    2 replies, posted
Hi, I'm building a f4 menu and i'm stuck on a 'simple' problem, i don't know how to check the number of entity owned by the player. For exemple the max printer you can own is 2 on basic darkrp but i don't know how to get the actual number of printer owned by the player... Thanks in advance !
make for loop running on all server entities and check if player own them with this ply:GetOwner() command Entity
You'd probably want to use CPPIGetOwner for entity ownership; GetOwner is for collision ownership.
Sorry, you need to Log In to post a reply to this thread.