WeaponClient

hidePedWeaponForScriptedCutscene

HIDE_PED_WEAPON_FOR_SCRIPTED_CUTSCENE0x6F6981D2253C208F

The GTA V native HIDE_PED_WEAPON_FOR_SCRIPTED_CUTSCENE of the WEAPON namespace, as LS:MP client scripts call it: the global function hidePedWeaponForScriptedCutscene, in JavaScript and in Lua.

SignatureJavaScript
hidePedWeaponForScriptedCutscene(ped: Ped, toggle: boolean): void
SignatureLua
hidePedWeaponForScriptedCutscene(ped: Ped, toggle: boolean)

Usage

JavaScript
hidePedWeaponForScriptedCutscene(ped, toggle);
Lua
hidePedWeaponForScriptedCutscene(ped, toggle)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Hides the players weapon during a cutscene.

Reference

Namespace
Weapon WEAPON
In the game
void HIDE_PED_WEAPON_FOR_SCRIPTED_CUTSCENE(Ped ped, BOOL toggle)
Hash
0x6F6981D2253C208F

Open in the interactive natives reference