Wiki

Clone wiki

EFLC-MP LUA / onPlayerArmourChange

Description

Triggered when the player body armor changes.

Page updated with this event's Build 11.2 params.

Parameters

Int playerId, Int lastDamageType, Int lastDamageGiver, Int boneId
Int playerId

Int lastDamageType: 0: was a player, 1: was a vehicle, -1: unknown

Int lastDamageGiver: ID of the player or vehicle

Int boneId: which bone was damaged.

Return values


Example

#!lua
function onPlayerArmorChange(playerid, dmgType, dmgGiver, boneId)
end
registerEvent("onPlayerArmorChange", "onPlayerArmorChange")

Updated