fairyoggy Posted May 19, 2021 Share Posted May 19, 2021 I'm sorry, but what am I doing wrong? How do I call triggers correctly? -- client function findplayer() local zplayer = getLocalPlayer() triggerServerEvent( 'findemail', zplayer) end addEvent("findplayer", true) addEventHandler( "findplayer", localPlayer, findplayer ) addCommandHandler ( "e", findplayer ) -- server function findemail(zplayer) outputChatBox("Your name: "..getPlayerName(zplayer)) end addEvent("findemail",true) addEventHandler("findemail",root,findemail) I get an error: attempt to concatenate a boolean value Link to comment
nikitafloy Posted May 19, 2021 Share Posted May 19, 2021 Use 'client' instead 'zplayer' (https://wiki.multitheftauto.com/wiki/TriggerServerEvent) Zplayer on server-side is not an argument, its a root 1 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