The Lab
WEAPON native

_SET_VEHICLE_WEAPON_HEADING_LIMITS_2

returns Any4 paramsbuild 1207

Alternative variant that sets the minimum and maximum heading limits of a vehicle weapon.

Signature

C
Any _SET_VEHICLE_WEAPON_HEADING_LIMITS_2(Vehicle vehicle, int p1, float minHeading, float maxHeading); // 0xBF5987E1CDE63501 b1207

Parameters

#NameType
1vehicleVehicle
2p1int
3minHeadingfloat
4maxHeadingfloat

Facts

Facts about _SET_VEHICLE_WEAPON_HEADING_LIMITS_2
Name
_SET_VEHICLE_WEAPON_HEADING_LIMITS_2
Hash
0xBF5987E1CDE63501
Namespace
Returns
Any
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0xBF5987E1CDE63501, -- _SET_VEHICLE_WEAPON_HEADING_LIMITS_2
  0, -- Vehicle vehicle
  0, -- int p1
  0.0, -- float minHeading
  0.0, -- float maxHeading
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xBF5987E1CDE63501", // _SET_VEHICLE_WEAPON_HEADING_LIMITS_2
  0, // Vehicle vehicle
  0, // int p1
  0.0, // float minHeading
  0.0, // float maxHeading
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xBF5987E1CDE63501, // _SET_VEHICLE_WEAPON_HEADING_LIMITS_2
  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.