• How to change user prop spawning permissions?
    3 replies, posted
So I made a post recently about something that can stop users from spawning props. I couldnt really figure out why it wasnt working but now I was wondering, can I set something in the lua files to make it so people with physguns can spawn props only. If not, how can I really make my lua file work for not spawning props? I stuck a .lua file in my server files in autorun but its not working.
You could check if the player is holding a physgun right now, using Player/GetWeapons and then check through the table with a for loop. if the player has a physgun in the inventory he can spawn props, if he doesnt, he cant spawn. or you use Player/GetActiveWeapon to let them only spawn props when they hold the physgun RIGHT now, otherwise not. Depends on what you want. being able to spawn props when holding the physgun only, or when they have it in their inventory already
Its more of the fact I cant really figure out WHERE to put these.
Then you dont know enough lua
Sorry, you need to Log In to post a reply to this thread.