MajdMTA Posted March 6, 2016 Share Posted March 6, 2016 Hello I've tried to make this. function togglesetjobWindow (player) if (guiGetVisible(setjobWindow)) then local g = if getElementData(player, "Group") if (g == "HoBoS") then guiSetVisible(setjobWindow, false) showCursor(false) else guiSetVisible(setjobWindow, true) showCursor(true) end end end addCommandHandler("gojob", togglesetjobWindow, false) Please help me guys. Link to comment
KariiiM Posted March 6, 2016 Share Posted March 6, 2016 Your code is totally messy, you're scripting in client side and adding player as parameter, remove it and use localPlayer also, this part make no senses local g = if getElementData(player, "Group") if (g == "HoBoS") then Link to comment
MajdMTA Posted March 6, 2016 Author Share Posted March 6, 2016 Your code is totally messy, you're scripting in client side and adding player as parameter, remove it and use localPlayeralso, this part make no senses local g = if getElementData(player, "Group") if (g == "HoBoS") then This is for my Group system script, Link to comment
KariiiM Posted March 6, 2016 Share Posted March 6, 2016 Yes I know that, it must be like that local g = getElementData(localPlayer, "Group") if (g == "HoBoS") then --your code. end Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now