changePlayerPed
CHANGE_PLAYER_PED0x048189FAC643DEEEThe GTA V native CHANGE_PLAYER_PED of the PLAYER namespace, as LS:MP client scripts call it: the global function changePlayerPed, in JavaScript and in Lua.
changePlayerPed(
player: Player,
ped: Ped,
p2: boolean,
resetDamage: boolean
): voidchangePlayerPed(player: Player, ped: Ped, p2: boolean, resetDamage: boolean)Usage
JavaScript
changePlayerPed(player, ped, p2, resetDamage);Lua
changePlayerPed(player, ped, p2, resetDamage)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
player | Player | number | integer |
ped | Ped | number | integer |
p2 | BOOL | boolean | boolean |
resetDamage | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Player PLAYER
- In the game
void CHANGE_PLAYER_PED(Player player, Ped ped, BOOL p2, BOOL resetDamage)- Hash
0x048189FAC643DEEE