Custom Job Lua Error Respond ASAP !!!

Post Reply
kevindel
New to forums
New to forums
Posts: 5
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Wed Mar 04, 2015 9:07 pm

Custom Job Lua Error Respond ASAP !!!

Post by kevindel »

Well i created a custom job and i need this server to be fixed by 4 hours need someone to respond asap !!! This is my custom Job for militaryrp---TEAM_ISIS = DarkRP.createJob("ISIS Soldier", {
color = Color( 37,14,240, 255),
model = {models/player/guerilla.mdl},
description = [[Allah Bless , Welcome ISIS Soldier, Kill all enemies, gays, Christians , Americans !!!!]],
weapons = {m9k_ak47, m9k_machete},
command = "isis_1",
max = 10,
salary = 100,
admin = 0,
vote = true,
hasLicense = false,

-- Insert customCheck here if you have one and want one.
})
AND THIS IS MY ERROR
There is 1 Lua problem!
Please check your console for more information!
[ERROR] A runtime error has occurred in "addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua" on line 23.
The best help I can give you is this:

attempt to perform arithmetic on global 'models' (a nil value)

Hints:
- No hints, sorry.

The responsibility for this error lies with (the authors of) one (or more) of these files:
1. addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua on line 23
2. gamemodes/darkrp/gamemode/libraries/fn.lua on line 80
3. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 119
4. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 129
5. addons/ulib/lua/ulib/shared/hook.lua on line 184
6. gamemodes/darkrp/gamemode/init.lua on line 81
------- End of Simplerr error -------
User avatar
TacTicToe
This is my homepage
This is my homepage
Posts: 848
Joined: Fri Feb 18, 2011 1:08 pm
Location: USA
Contact:

Re: Custom Job Lua Error Respond ASAP !!!

Post by TacTicToe »

Honestly with a server description like that I doubt anyone here is going to want to help you. If anything I really hope you get banned from the forums.
kevindel
New to forums
New to forums
Posts: 5
Joined: Wed Mar 04, 2015 9:07 pm

Re: Custom Job Lua Error Respond ASAP !!!

Post by kevindel »

Wow that's messed up I didnt do anything wrong, Im asking Politley
theRadAleks
This is my homepage
This is my homepage
Posts: 200
Joined: Wed Feb 19, 2014 6:07 pm
Location: Dallas, TX

Re: Custom Job Lua Error Respond ASAP !!!

Post by theRadAleks »

What is the code on line 23?
kevindel
New to forums
New to forums
Posts: 5
Joined: Wed Mar 04, 2015 9:07 pm

Re: Custom Job Lua Error Respond ASAP !!!

Post by kevindel »

This one right here :P :
model = {models/player/guerilla.mdl},
It's the Playermodel for the Job :D
theRadAleks
This is my homepage
This is my homepage
Posts: 200
Joined: Wed Feb 19, 2014 6:07 pm
Location: Dallas, TX

Re: Custom Job Lua Error Respond ASAP !!!

Post by theRadAleks »

Lol, there is alot wrong with your jobs code, here try this

Code: Select all

TEAM_ISIS = DarkRP.createJob("ISIS Soldier",{
	color = Color( 37, 14, 240, 255),
	model = "models/player/guerilla.mdl",
	description =[[Allah Bless, Welcome ISIS
	Soldier, Kill all enemies, gays, Christians,
	Americans!!!!]],
	weapons ={"m9k_ak47", "m9k_machete"},
	command ="isis_1",
	max = 10,
	salary = 100,
	admin = 0,
	vote = true,
	hasLicense = false,
})
kevindel
New to forums
New to forums
Posts: 5
Joined: Wed Mar 04, 2015 9:07 pm

Re: Custom Job Lua Error Respond ASAP !!!

Post by kevindel »

Lml K ill try it one sec
kevindel
New to forums
New to forums
Posts: 5
Joined: Wed Mar 04, 2015 9:07 pm

Re: Custom Job Lua Error Respond ASAP !!!

Post by kevindel »

Ok so it worked thanks so much i was using a stupid Job generator www.thecodingbeast.com And i guess it doesnt work And Dead Eye Class maker :( :x :D :D
Post Reply