DropPlayer

From CitizenMP:IV Reloaded
Jump to: navigation, search

Description:

Kicks a player from the server. They will have to quit the game and re-connect if they wish to continue playing.


Parameters:

  • player - The identifier of the player to look up.
  • reason - A message that will be shown for the player after he dropped.


Example Usage:

AddEventHandler('chatMessage', function(source, name, message)
    if(message == "asshole") then
        DropPlayer(source, "You was kicked because of insulting.")
    end
end)