_SET_VEHICLE_WEAPON_HEADING_LIMITS_2
Alternative variant that sets the minimum and maximum heading limits of a vehicle weapon.
Signature
Any _SET_VEHICLE_WEAPON_HEADING_LIMITS_2(Vehicle vehicle, int p1, float minHeading, float maxHeading); // 0xBF5987E1CDE63501 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | vehicle | Vehicle |
| 2 | p1 | int |
| 3 | minHeading | float |
| 4 | maxHeading | float |
Facts
| 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.
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)// 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)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
);Related WEAPON natives
- _SET_VEHICLE_WEAPON_HEADING_LIMITS
- _SET_VEHICLE_WEAPON_RELOAD_MODE
- SET_VEHICLE_WEAPON_HEADING
- SET_CURRENT_PED_VEHICLE_WEAPON
- _SET_AMMO_TYPE_FOR_PED_WEAPON
- _SET_AMMO_TYPE_FOR_PED_WEAPON_INVENTORY
- _SET_FORCE_CURRENT_WEAPON_INTO_COCKED_STATE
- _SET_PED_WEAPON_ATTACH_POINT_VISIBILITY
- _SET_WEAPON_DAMAGE
- _SET_WEAPON_DEGRADATION
- _SET_WEAPON_DIRT
- _SET_WEAPON_HOLSTERED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.