My donator jobs wont work but i am not getting errors etc, i turned to using the old method of steamids for the donator jobs but they wont appear in the menu etc
[CODE]TEAM_PROTHIEF = DarkRP.createJob("Pro Thief", {
color = Color(100, 0, 0, 255),
VIPOnly = true,
model = "models/player/Phoenix.mdl",
description = [[You are a pro thief, the best of the best. ]],
weapons = {"lockpick","m9k_honeybadger","rp_pickpocket","weapon_arc_atmcard","weapon_arc_atmhack"},
command = "prothief",
max = 1,
salary = 130,
admin = 0,
vote = false,
haslicense = true,
prior = false,
customCheck = function(ply) return ply:SteamID() == "STEAM_0:0:43923745" end,
CustomCheckFailMsg = 'This job is donator only!',
})[/CODE]
Anyone find any faults?
Delete the comma on the last line
Nope, didnt make a difference. I have tried everything, disabling fadmin, using fadmin ranks and still nothing happens.
Try
TEAM_PROTHIEF = DarkRP.createJob("Pro Thief", {
color = Color(100, 0, 0, 255),
model = "models/player/Phoenix.mdl",
description = [[You are a pro thief, the best of the best. ]],
weapons = {"lockpick", "m9k_honeybadger", "rp_pickpocket", "weapon_arc_atmcard", "weapon_arc_atmhack"},
command = "prothief",
max = 1,
salary = 130,
admin = 0,
vote = false,
haslicense = true,
customCheck = function(ply) return ply:SteamID() == "STEAM_0:0:43923745" end,
CustomCheckFailMsg = 'This job is donator only!',
})
[QUOTE=Aeternal;44668638]Try [URL="http://wiki.darkrp.com/index.php/Donator_Job_configuration"]this[/URL][/QUOTE]
I have tried that before still not working.
[editline]28th April 2014[/editline]
[QUOTE=05bthompson;44668634]Try
TEAM_PROTHIEF = DarkRP.createJob("Pro Thief", {
color = Color(100, 0, 0, 255),
model = "models/player/Phoenix.mdl",
description = [[You are a pro thief, the best of the best. ]],
weapons = {"lockpick", "m9k_honeybadger", "rp_pickpocket", "weapon_arc_atmcard", "weapon_arc_atmhack"},
command = "prothief",
max = 1,
salary = 130,
admin = 0,
vote = false,
haslicense = true,
customCheck = function(ply) return ply:SteamID() == "STEAM_0:0:43923745" end,
CustomCheckFailMsg = 'This job is donator only!',
})[/QUOTE]
Thanks man, did you know what i done wrong?
VIPOnly and prior aren't the correct things to make it derive from a job and make it donator only. You can only do that with CustomCheck.
Also you aren't calling to see if they're a donator just that one steam ID.
Yes because i thought it was something to do with the donator groups with ULX and FAdmin, VIPOnly = true is for the HUD im using. It adds it to a special part of the hud.
Sorry, you need to Log In to post a reply to this thread.