OnPlayerChat
From Onset Developer Wiki
Description
The event that gets called when you type a message in the chat.
Syntax
OnPlayerChat(player, text)
Client Syntax
OnPlayerChat(text)
Parameters
- player
The player who is texting in chat. - text
Text committed by the player.
Example
AddEvent("OnPlayerChat", function(playerid, text)
local x, y, z = GetPlayerLocation(playerid)
AddPlayerChatRange(x, y, 75.0, "<span color=\"#ffffffFF\">"..GetPlayerName(playerid).." says: "..text.."</>")
return false
end)
See also
- OnPlayerServerAuth
- OnPlayerSteamAuth
- OnPlayerStreamIn
- OnPlayerStreamOut
- OnPlayerJoin
- OnPlayerQuit
- OnPlayerSpawn
- OnPlayerDeath
- OnPlayerWeaponShot
- OnPlayerDamage
- OnPlayerChat
- OnPlayerChatCommand
- OnPlayerInteractDoor
- OnPlayWeaponHitEffects
- OnPlayerSwitchCamera
- OnPlayerEnterWater
- OnPlayerLeaveWater
- OnPlayerCrouch
- OnPlayerEndCrouch
- OnPlayerEndFall
- OnPlayerFall
- OnPlayerTalking