Physgun props DarkRP
Hello I have set all my ulx ranks properly but there is one thing that is not working as it should. My admins can physgun my props / higher ranked people's props, I have tried many things in Falco's Prop Protection and ULX Perms nothing seemed to work.
But there is one thing that might cause that to happen, I have a script that allows certain ranks to physgun their vehicles. Anyways here is the code:
Any help is appreciated! Thank you.
pretty sure instead of spamming if you can use tables
end
`[ERROR] lua/autorun/physgunvehicles.lua:3: function arguments expected near ')'
- unknown - lua/autorun/physgunvehicles.lua:0`
hook.Add("PhysgunPickup", "NoPhysgunCars", NoPhysgunCars)
You missed the argument brackets after GetUserGroup, It's meant to be ply:GetUserGroup().
ByAuthor.at 19th of February 2017 21:47:15
if table.HasValue({"owner", "superadmin", "admin", "dadmin", "dsuperadmin"}, ply:GetUserGroup) then -- code endGood answer and good way to accomplish this but a more efficient way would be to store the user groups names at a key and make the value true
Read here: https://wiki.garrysmod.com/page/Tables:_Bad_Habits
I have fixed it using this
but I had to enter the ranks that aren't allowed to physgun vehicles, and the ones that are allowed to physgun cars are allowed to pickup each others props.
I have also tried this and it did not work:
Thanks in advance