General > Developers Corner
Lua errors after using function(ply) return ply:IsUserGroup("donator") end)
daniel507:
What do you recommend me to do? i might delete the whole DarkRP folder and replace it with a new one.
MrPresident:
I honestly don't know. I have 0% experience with DarkRP.
Try removing that entire block of code
--- Code: ---if CLIENT then
if LocalPlayer():IsUserGroup("donator") or LocalPlayer():IsAdmin() then
TEAM_MTHEIF = AddExtraTeam("Master Thief", Color(150, 153, 0, 150), "models/player/arctic.mdl" , [[You are a faster and stronger thief. use your lockpick and keypad cracker to
get into peoples homes]], {"lockpick", "keypad_cracker"}, "mastertheif", 2, 150, 0, false, false)
TEAM_PARKOUR = AddExtraTeam("Parkour", Color(150, 140, 0, 130), "models/player/arctic.mdl" ,[[You are able to sneak up on you enimies and raid while they
dont expect it]], {"lockpick", "climb_swep"}, "parkour", 2, 135, 0, false, false)
end
end
--- End code ---
and see if you still get any errors.
daniel507:
K ill do that tommorow
daniel507:
I deleted that and i get no errors :/
daniel507:
I am just going to remove DarkRP folder and replace with new one, then try the shared.lua then
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version