Jump to content

[HELP] Please


1LoL1

Recommended Posts

Hello i have this code and how i can when player join this will false. Please can anyone help me?

function GUI() 
    local Alpha = guiGetVisible(v) and guiGetVisible(b) 
    guiSetVisible(v, not Alpha) 
    guiSetVisible(b, not Alpha) 
end 
bindKey("F6","down",GUI) 

If this so this not work

function test () 
guiSetVisible(v, false) 
guiSetVisible(b, false) 
end 
addEventHandler("onPlayerJoin", getRootElement(), test)  

Link to comment
You're using server side events and client side functions together and that will never work.

Use onClientResourceStart instead.

Working thanks. And when i want to "onPlayerJoin" ?

this not work :(

function test () 
guiSetVisible(v, false) 
guiSetVisible(b, false) 
end 
addEventHandler("onPlayerJoin", getRootElement(), test) 

You're using server side events and client side functions together and that will never work.

Link to comment
You're using server side events and client side functions together and that will never work.

Use onClientResourceStart instead.

Working thanks. And when i want to "onPlayerJoin" ?

this not work :(

function test () 
guiSetVisible(v, false) 
guiSetVisible(b, false) 
end 
addEventHandler("onPlayerJoin", getRootElement(), test) 

You're using server side events and client side functions together and that will never work.

So i must use Trigger?

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