WeaponClient

setPedCycleVehicleWeaponsOnly

SET_PED_CYCLE_VEHICLE_WEAPONS_ONLY0x50276EF8172F5F12

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

SignatureJavaScript
setPedCycleVehicleWeaponsOnly(ped: Ped): void
SignatureLua
setPedCycleVehicleWeaponsOnly(ped: Ped)

Usage

JavaScript
setPedCycleVehicleWeaponsOnly(ped);
Lua
setPedCycleVehicleWeaponsOnly(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Weapon WEAPON
In the game
void SET_PED_CYCLE_VEHICLE_WEAPONS_ONLY(Ped ped)
Hash
0x50276EF8172F5F12
Introduced
Game build 1734 legacy numbering

Open in the interactive natives reference