PlayerClient

givePlayerRagdollControl

GIVE_PLAYER_RAGDOLL_CONTROL0x3C49C870E66F0A28

The GTA V native GIVE_PLAYER_RAGDOLL_CONTROL of the PLAYER namespace, as LS:MP client scripts call it: the global function givePlayerRagdollControl, in JavaScript and in Lua.

SignatureJavaScript
givePlayerRagdollControl(player: Player, toggle: boolean): void
SignatureLua
givePlayerRagdollControl(player: Player, toggle: boolean)

Usage

JavaScript
givePlayerRagdollControl(player, toggle);
Lua
givePlayerRagdollControl(player, toggle)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Player PLAYER
In the game
void GIVE_PLAYER_RAGDOLL_CONTROL(Player player, BOOL toggle)
Hash
0x3C49C870E66F0A28

Open in the interactive natives reference