MAB Posted July 29, 2015 Share Posted July 29, 2015 attempt to call global 'createEffect' function start(player) if ( hasObjectPermissionTo ( player, "function.kickPlayer", false ) ) then showCursor(player,true,true) addEventHandler("onPlayerClick",player,explosion) end end addCommandHandler("ilovetoburn",start) function explosion (button,state,element,x,y,z) if (button == "left" and state == "down") then createExplosion (x,y,z,1) createEffect ("teargas",x,y,z) end end function stop(player) if ( hasObjectPermissionTo ( player, "function.kickPlayer", false ) ) then showCursor(player,false,false) removeEventHandler("onPlayerClick",player,explosion) end end addCommandHandler("ihatetoburn",stop) Link to comment
John Smith Posted July 29, 2015 Share Posted July 29, 2015 createEffect is client sided function Link to comment
MisterQuestions Posted July 30, 2015 Share Posted July 30, 2015 Use triggerClientEvent to root. Send the arguments from server to client. Thats it! 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