Does anyone have some quick advice so that, upon a player changing to a certain job, I can check whether or not the job they picked is THE actual job by that name in the f4 menu, or simply a false one done by using /job "Head Admin" or whatever.
Can't you disable that in the darkrp settings anyways? Probably 10x easier.
[QUOTE=Invule;50709032]Can't you disable that in the darkrp settings anyways? Probably 10x easier.[/QUOTE]
Get rated dumb and late. Very helpful.
Anyways, now I can't even seem to override the ChangeJob function successfully for some odd reason, I've made a module in darkrpmodifactions/modules but my chat prints for testing just aren't showing up when I switch jobs.
You can always use RPExtraTeams which is the global table of all your jobs. Doing something like RPExtraTeams[ply:Team()] would return the table for that job which includes all of the parameters that you had set for it.
[QUOTE=Sheeplie;50709295]Get rated dumb and late. Very helpful.
Anyways, now I can't even seem to override the ChangeJob function successfully for some odd reason, I've made a module in darkrpmodifactions/modules but my chat prints for testing just aren't showing up when I switch jobs.[/QUOTE]
[url=https://facepunch.com/showthread.php?t=1517074]Take the ratings with a grain of salt[/url]
Assuming you want people to be able to use /job for custom job names without letting them spoof some official job or whatever, you don't even need to override anything - there's a [url=http://wiki.darkrp.com/index.php/Hooks/Server/canChangeJob]canChangeJob[/url] hook you can use to check the job name when someone uses /job
Sorry, you need to Log In to post a reply to this thread.