Extinction Posted February 21, 2016 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.
Addlibs Posted February 21, 2016 Posted February 21, 2016 show us your client-side counterpart (only the relevant parts)
KariiiM Posted February 21, 2016 Posted February 21, 2016 Why don't you just use onClientPlayerWasted and do removeEventHandler
#RooTs Posted February 21, 2016 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)
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