I got an error saying,
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 183.
The best help I can give you is this:
There is an opening '{' bracket at line 179, but this bracket is never closed or not closed in time. It was expected to be closed before the '=' at line 183.
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: ({)}.
------- End of Simplerr error -------
1. error - [C]:-1
2. doInclude - gamemodes/darkrp/gamemode/libraries/simplerr.lua:530
3. loadCustomDarkRPItems - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:137
4. Call - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:148
5. unknown - gamemodes/darkrp/gamemode/init.lua:111
Couldn't Load Init Script: 'darkrp/gamemode/init.lua'
BUT THEESE ARE GAMEMODES NOT Jobs, I dont know how to do this it didint explain how do i make Gamemodes i made theese beacause i accidently deleted theese, so i made new ones.. Can Anyone explain please!
GAMEMODE.DefaultTeam = TEAM_CITIZEN
GAMEMODE.Goverment = {
[TEAM_POLICE] = true,
[TEAM_SWAT] = true,
[TEAM_CHIEF] = true,
}
GAMEMODE.Dealer = {
[TEAM_GUN] = true,
[TEAM_HITMAN] = true,
GAMEMODE.Criminal = {
[TEAM_THEIF] = true,
GAMEMODE.Admin = TEAM_ADMIN
I honestly don't have time to look through darkrp errors but I can tell you that it's surely your fault, you've probably missed out a comma or something else.
Your first table has a closing curly brace, but the other two do not. How is the Lua interpreter supposed to know that your tables are done being declared if you don't close your curly braces?
Thank you! It worked
Lua accepts extra comma at the end of the lists it ain't picky about that
Sorry, you need to Log In to post a reply to this thread.