I am trying to add go carts so the cardealer can but them in dark rp and get a error.
The line of code causing the problem is
AddCustomVehicle("kart1", "models/gokarts/kart1.mdl", 4000, {TEAM_CARDEALER})
AddCustomVehicle("kart2", "models/gokarts/kart2.mdl", 4000, {TEAM_CARDEALER})
AddCustomVehicle("kart3", "models/gokarts/kart3.mdl", 4000, {TEAM_CARDEALER})
AddCustomVehicle("kart4", "models/gokarts/kart4.mdl", 4000, {TEAM_CARDEALER})
AddCustomVehicle("kart5", "models/gokarts/kart5.mdl", 4000, {TEAM_CARDEALER})
The error is
[ERROR] gamemodes/darkrp/gamemode/shared/makethings.lua:13: attempt to index local 'tbl' (a nil value)
1. checkValid - gamemodes/darkrp/gamemode/shared/makethings.lua:13
2. AddCustomVehicle - gamemodes/darkrp/gamemode/shared/makethings.lua:94
3. unknown - gamemodes/darkrp/gamemode/addentities.lua:58
4. include - [C]:-1
5. unknown - gamemodes/darkrp/gamemode/cl_init.lua:100
[highlight](User was banned for this post ("This forum isn't for Lua help" - garry))[/highlight]
Sorry, you need to Log In to post a reply to this thread.