I was making a black market dealer class for my darkrp server and I got this error in console:
[ERROR] lua/includes/extensions/table.lua:100: bad argument #1 to 'pairs' (table expected, got number)
1. pairs - [C]:-1
2. HasValue - lua/includes/extensions/table.lua:100
3. Agenda - gamemodes/darkrp/gamemode/client/hud.lua:136
4. DrawHUD - gamemodes/darkrp/gamemode/client/hud.lua:228
5. unknown - gamemodes/darkrp/gamemode/client/hud.lua:339
[LUA]
})
TEAM_BLACK = AddExtraTeam("Black Market Dealer", {
color = Color(255, 140, 0, 255),
model = "models/player/eli.mdl",
description = [[ Sell illegal weapons and explosives to people,
but don't get caught by the Civil Protection.
]],
weapons = {},
command = "blackmarketdealer",
max = 3,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})
[/LUA]
Anyone know what is wrong?
Just posting that isn't going to help very much.
Sorry, you need to Log In to post a reply to this thread.