The Lab
WEAPON native

SET_PED_CURRENT_WEAPON_VISIBLE

returns void5 paramsbuild 1207

Shows or hides the ped's current weapon, optionally deselecting it.

Signature

C
void SET_PED_CURRENT_WEAPON_VISIBLE(Ped ped, BOOL visible, BOOL deselectWeapon, BOOL p3, BOOL p4); // 0x0725A4CCFDED9A70 b1207

Parameters

#NameType
1pedPed
2visibleBOOL
3deselectWeaponBOOL
4p3BOOL
5p4BOOL

Facts

Facts about SET_PED_CURRENT_WEAPON_VISIBLE
Name
SET_PED_CURRENT_WEAPON_VISIBLE
Hash
0x0725A4CCFDED9A70
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x0725A4CCFDED9A70, -- SET_PED_CURRENT_WEAPON_VISIBLE
  PlayerPedId(), -- Ped ped
  false, -- BOOL visible
  false, -- BOOL deselectWeapon
  false, -- BOOL p3
  false -- BOOL p4
)
JavaScript
Citizen.invokeNative("0x0725A4CCFDED9A70", // SET_PED_CURRENT_WEAPON_VISIBLE
  PlayerPedId(), // Ped ped
  false, // BOOL visible
  false, // BOOL deselectWeapon
  false, // BOOL p3
  false // BOOL p4
);
C#
Function.Call((Hash)0x0725A4CCFDED9A70, // SET_PED_CURRENT_WEAPON_VISIBLE
  API.PlayerPedId(), // Ped ped
  false, // BOOL visible
  false, // BOOL deselectWeapon
  false, // BOOL p3
  false // BOOL p4
);
All WEAPON natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.