The Lab
WEAPON native

_SET_VEHICLE_WEAPON_HEADING_LIMITS

returns void4 paramsbuild 1207

Sets the minimum and maximum heading limits of a vehicle weapon.

Signature

C
void _SET_VEHICLE_WEAPON_HEADING_LIMITS(Vehicle vehicle, int p1, float minHeading, float maxHeading); // 0x56CB3B4305A4F7CE b1207

Parameters

#NameType
1vehicleVehicle
2p1int
3minHeadingfloat
4maxHeadingfloat

Facts

Facts about _SET_VEHICLE_WEAPON_HEADING_LIMITS
Name
_SET_VEHICLE_WEAPON_HEADING_LIMITS
Hash
0x56CB3B4305A4F7CE
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(0x56CB3B4305A4F7CE, -- _SET_VEHICLE_WEAPON_HEADING_LIMITS
  0, -- Vehicle vehicle
  0, -- int p1
  0.0, -- float minHeading
  0.0 -- float maxHeading
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x56CB3B4305A4F7CE", // _SET_VEHICLE_WEAPON_HEADING_LIMITS
  0, // Vehicle vehicle
  0, // int p1
  0.0, // float minHeading
  0.0 // float maxHeading
);
C#
Function.Call((Hash)0x56CB3B4305A4F7CE, // _SET_VEHICLE_WEAPON_HEADING_LIMITS
  0, // Vehicle vehicle
  0, // int p1
  0.0f, // float minHeading
  0.0f // float maxHeading
);
All WEAPON natives

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