Hello, i've seen a Garry's Mod server with a job made for a specific player and only that person could use it. They used the customCheck for doing that but i only know how to do it for ranks. How to do it for a specific player?
customCheck = function(ply) if 'STEAM_XXXXXX' == ply:SteamID() then return true else return false end,
(I actually am just guessing, I've never used it :))
Extremely basic lua, I'd advise not editing the 'advanced' config options of DarkRP if you cannot achieve such things.
Also, wrong forum section.
[QUOTE=Pantho;43486385]customCheck = function(ply) if 'STEAM_XXXXXX' == ply:SteamID() then return true else return false end,
(I actually am just guessing, I've never used it :))
Extremely basic lua, I'd advise not editing the 'advanced' config options of DarkRP if you cannot achieve such things.
Also, wrong forum section.[/QUOTE]
Well, thank you.
:)
[editline]10th January 2014[/editline]
I just tried it... and i got this error:
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:165 unexpected symbol near ','
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0
Either replace 'else' with 'end' or add another 'end' before the last one.
Okay :)
[editline]10th January 2014[/editline]
Thanks alot! It worked :D
[QUOTE=Bo98;43487842]Either replace 'else' with 'end' or add another 'end' before the last one.[/QUOTE]
Ah yea, woops ;)
Sorry, you need to Log In to post a reply to this thread.