Author Topic: Lua errors after using function(ply) return ply:IsUserGroup("donator") end)  (Read 7517 times)

0 Members and 1 Guest are viewing this topic.

Offline daniel507

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
What do you recommend me to do? i might delete the whole DarkRP folder and replace it with a new one.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
I honestly don't know. I have 0% experience with DarkRP.

Try removing that entire block of code

Code: [Select]
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

and see if you still get any errors.

Offline daniel507

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
K ill do that tommorow

Offline daniel507

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
I deleted that and i get no errors :/

Offline daniel507

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
I am just going to remove DarkRP folder and replace with new one, then try the shared.lua then

Offline nathan736

  • Full Member
  • ***
  • Posts: 143
  • Karma: 4
theres a tutorial for this on the dark rp wiki i believe  #quick post
a person asked me how to code lua and i said this " its like building a rocket up side down then  realizing you did it all wrong."

Offline daniel507

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
Nah i tried everything, making deathrun server now and it's looking pretty sleek, just tryinng to work out how to get custom models :/ ip - 91.121.31.16:27015 - it's  not properly finished yet :P

Thanks to everyone who helped me :) especially Mr.President thanks!

Thread Closed