• If job = seller SHOW ME THAT else HIDE IT end
    4 replies, posted
Hi. I am making F4 Menu. I have a question. How to say. If job = seller SHOW ME THAT else HIDE IT end. THX
1) you forgot to capitalize var 2) job returns a table
local ply = LocalPlayer()   local jbs = ply:getDarkRPvar( "job" ) if jbs == "TEAM_GUN" then --something end I am noob. Could you explain?
Firstly the code you just pasted will only work on the client. getDarkRPVar( “job” ) returns a table of all of the information of the job, such as the fields “color”, “mayor”, “name”, etc., the values you [i]should’ve[/i] filled in in jobs.lua. In your case, I [i]think[/i] (do NOT take my word for this) you would want to do a if ply:Team() == TEAM_GUN then
Thanks a lot!
Sorry, you need to Log In to post a reply to this thread.