• DarkRP HUD says job is "nil"
    2 replies, posted
Hello everyone! I've been working on a DarkRP hud, and I was making a section for jobs, I used LocalPlayer().DarkRPVars.jobs and placed it in the correct position. The only issue is that it shows my job as "nil" no matter what job I am. Any help? Thanks
[QUOTE=ExZPErience;48372973]Hello everyone! I've been working on a DarkRP hud, and I was making a section for jobs, I used LocalPlayer().DarkRPVars.jobs and placed it in the correct position. The only issue is that it shows my job as "nil" no matter what job I am. Any help? Thanks[/QUOTE] You are not using the function correctly. Here is an example of the official DarkRP HUD, look how they use the DarkRP Vars. [url]https://github.com/FPtje/DarkRP/blob/master/gamemode/modules/hud/cl_hud.lua[/url] Next time I suggest you try and do that your self, you've got a dozens of examples online.
[QUOTE=tzahush;48373034]You are not using the function correctly. Here is an example of the official DarkRP HUD, look how they use the DarkRP Vars. [url]https://github.com/FPtje/DarkRP/blob/master/gamemode/modules/hud/cl_hud.lua[/url] Next time I suggest you try and do that your self, you've got a dozens of examples online.[/QUOTE] I played around with the code and found my mistake. The correct function was DarkRPVars.Job no DarkRPVars.jobs
Sorry, you need to Log In to post a reply to this thread.