Extinction Posted February 21, 2016 Share Posted February 21, 2016 function onWaste() triggerClientEvent (source,"showSpawn:true", source) end addEventHandler("onPlayerWasted", root, onWaste) Trying to trigger my client side even, when the player dies it opens my Dx, Spawn Panel again? But it doesnt. Link to comment
Addlibs Posted February 21, 2016 Share Posted February 21, 2016 show us your client-side counterpart (only the relevant parts) Link to comment
KariiiM Posted February 21, 2016 Share Posted February 21, 2016 Why don't you just use onClientPlayerWasted and do removeEventHandler Link to comment
#RooTs Posted February 21, 2016 Share Posted February 21, 2016 try this --server function onWaste() triggerClientEvent (source,"showSpawn") end addEventHandler("onPlayerWasted", root, onWaste) --client function onWaste2() addEventHandler("onClientRender", root, NameRender) end addEvent("showSpawn", true) addEventHandler("showSpawn", root, onWaste2) or --client function NameEvent2() addEventHandler("onClientRender", root, NameRender) end addEventHandler("onClientPlayerWasted", root, NameEvent2) Link to comment
KariiiM Posted February 23, 2016 Share Posted February 23, 2016 I prefer the second part 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