[DarkRP] Car Dealer NPC error

When I go on my server and press “E” to talk to the Car Dealer NPC, I get this error:


[ERROR] addons/car_dealer/lua/npcshop/gui.lua:18: attempt to call method ‘GetUserGroup’ (a nil value)

  1. IsPlyDonator - addons/car_dealer/lua/npcshop/gui.lua:18
  2. AddVehicle - addons/car_dealer/lua/npcshop/gui.lua:144
    3. CreateFrame - addons/car_dealer/lua/npcshop/gui.lua:197
    4. Function - addons/car_dealer/lua/npcshop/gui.lua:220
    5. unknown - lua/includes/modules/usermessage.lua:87

[ERROR] addons/car_dealer/lua/npcshop/gui.lua:57: attempt to index local ‘parent’ (a nil value)

  1. unknown - addons/car_dealer/lua/npcshop/gui.lua:57

[ERROR] addons/car_dealer/lua/npcshop/gui.lua:57: attempt to index local ‘parent’ (a nil value)

  1. unknown - addons/car_dealer/lua/npcshop/gui.lua:57

[ERROR] addons/car_dealer/lua/npcshop/gui.lua:57: attempt to index local ‘parent’ (a nil value)

  1. unknown - addons/car_dealer/lua/npcshop/gui.lua:57

[ERROR] addons/car_dealer/lua/npcshop/gui.lua:57: attempt to index local ‘parent’ (a nil value)

  1. unknown - addons/car_dealer/lua/npcshop/gui.lua:57

[ERROR] addons/car_dealer/lua/npcshop/gui.lua:57: attempt to index local ‘parent’ (a nil value)

  1. unknown - addons/car_dealer/lua/npcshop/gui.lua:57

[ERROR] addons/car_dealer/lua/npcshop/gui.lua:57: attempt to index local ‘parent’ (a nil value)

  1. unknown - addons/car_dealer/lua/npcshop/gui.lua:57

[ERROR] addons/car_dealer/lua/npcshop/gui.lua:57: attempt to index local ‘parent’ (a nil value)

  1. unknown - addons/car_dealer/lua/npcshop/gui.lua:57

[ERROR] addons/car_dealer/lua/npcshop/gui.lua:57: attempt to index local ‘parent’ (a nil value)

  1. unknown - addons/car_dealer/lua/npcshop/gui.lua:57

Help please! Thanks!

Do you have ULX? I think GetUserGroup is the function ULX uses.

It worked! Thanks!