Hey guys!
[DarkRP] gamemodes/darkrp/gamemode/modules/base/sh_util.lua:34: attempt to compare number with table
1. formatMoney - gamemodes/darkrp/gamemode/modules/base/sh_util.lua:34
2. setDarkRPItem - gamemodes/darkrp/gamemode/modules/f4menu/cl_menuitem.lua:155
3. buttonFactory - gamemodes/darkrp/gamemode/modules/f4menu/cl_entitiestab.lua:76
4. Fill - gamemodes/darkrp/gamemode/modules/f4menu/cl_categories.lua:112
5. SetCategory - gamemodes/darkrp/gamemode/modules/f4menu/cl_categories.lua:94
6. createCategories - gamemodes/darkrp/gamemode/modules/f4menu/cl_entitiestab.lua:94
7. generateButtons - gamemodes/darkrp/gamemode/modules/f4menu/cl_entitiestab.lua:246
8. unknown - gamemodes/darkrp/gamemode/modules/f4menu/cl_entitiestab.lua:8
Getting that error after adding this entity in to the server as a custom entity:
DarkRP.createEntity("556x45MM Ammo", {
ent = "cw_ammo_556x45",
model = "models/Items/BoxSRounds.mdl",
price = 500,
max = 2,
cmd = "buy556",
sortOrder = 100, -- The position of this thing in its category. Lower number means higher up.
})
The thing is, is that the entity works and spawn the ammo, just getting this error.
Looking for a hand, thanks!