iPanda Posted March 6, 2014 Share Posted March 6, 2014 How can I use the banPlayer on the client side? How do I express triggerServerEvent? server side: addEvent("banPlayer", true) addEventHandler("banPlayer", getRootElement(), function(ban) if (type(ban) == "player") then banPlayer(client, ban) end end) Then in client side i use client side: triggerServerEvent("banPlayer", getLocalPlayer(), getLocalPlayer()) Link to comment
iPrestege Posted March 6, 2014 Share Posted March 6, 2014 triggerServerEvent("_banPlayer", getLocalPlayer()) addEvent("_banPlayer", true) addEventHandler("_banPlayer", getRootElement(), function( ) banPlayer(client,false,false,true,root) end ) 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