how can i set max prop per user for spawning objects ?
like player only can spawn 5 object if is it more kick the player

… why are you even allowing players to ‘spawn objects’ in the first place, instead of having this logic server-sided?

3 Likes

no it’s Roleplay people need this permission and yes it’s server side
i blocked some big objects but roleplay object cant be blocked
my problem are hackers they keep spawning objects and attach them to players
thanks for responding ! :heart:

Not need this permission!
You need to rewrite scripts or use resources that create entities on the server side instead of the client side and turn off the ability to spawn on the client side.

You could make a whitelist object list (That the players will be only allowed to spawn) and also you could make a server sided table that will count the entitiesSpawned per 3-4 seconds

AddEventHandler(“entityCreating”, function(entity)
–your code
end)

You could use this handler :slight_smile:

1 Like

thanks man