Jump to content

Help me with this function


MajdMTA

Recommended Posts

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
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 

This is for my Group system script,

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...