Jump to content

[Script Error]


Recommended Posts

client:

function showBriefcaseMission (button, state) 
if (button == "left" and state == "up") then 
guiSetVisible (MainWin, false) 
triggerClientEvent ("briefcasebtn", localplayer) 
showCursor (true) 
    end 
end 
addEventHandler ("onClientGUIClick", BriefcaseMission, showBriefcaseMission) 

client:

function briefcasebtn () 
guiSetVisible ("BriefcaseWin", true) 
end 
addEvent ("briefcasebtn", true) 
addEventHandler ("briefcasebtn", getRootElement(), briefcasebtn) 

error:

attempt to call global 'triggerClientEvent' (a nil value) 

this problem because i can't trigger client event and i'm already in client event and not in server side? :/..please help!

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