Jump to content

banPlayer in client side?


iPanda

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...