vip entity
Hey there so i am having an issue where i get the error " [DarkRP] gamemodes/darkrp/gamemode/libraries/simplerr.lua:528: [ERROR] Lua is unable to understand file "darkrp_modules/oneprint/sh_entities.lua" because its author made a mistake around line number 17.
The best help I can give you is this:
There is an opening '{' bracket at line 10, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 17.
Hints:
- Did you forget a comma?
- All open brackets ({, (, [) must have a matching closing bracket. Are you sure it's there?
- Brackets must be opened and closed in the right order. This will work: ({}), but this won't: ({)}."
here is the code
DarkRP.createEntity( "VIP OnePrint", {
ent = "oneprint",
model = "models/ogl/ogl_oneprint.mdl",
price = 1000000000,
max = 3,
cmd = "Viponeprint",
category = "Printers"
customCheck = function(ply) return ply:GetUserGroup() == "Vip" end,
}
i have figured out the error I forgot the comma at the end of category = "Printers" i had to remove the comma at the end of the customcheck and i had to add a ) at the end of the }