_SET_VEHICLE_WEAPON_HEADING_LIMITS
Sets the minimum and maximum heading limits of a vehicle weapon.
Signature
void _SET_VEHICLE_WEAPON_HEADING_LIMITS(Vehicle vehicle, int p1, float minHeading, float maxHeading); // 0x56CB3B4305A4F7CE b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | vehicle | Vehicle |
| 2 | p1 | int |
| 3 | minHeading | float |
| 4 | maxHeading | float |
Facts
| 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.
Citizen.InvokeNative(0x56CB3B4305A4F7CE, -- _SET_VEHICLE_WEAPON_HEADING_LIMITS
0, -- Vehicle vehicle
0, -- int p1
0.0, -- float minHeading
0.0 -- float maxHeading
)// 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
);Function.Call((Hash)0x56CB3B4305A4F7CE, // _SET_VEHICLE_WEAPON_HEADING_LIMITS
0, // Vehicle vehicle
0, // int p1
0.0f, // float minHeading
0.0f // float maxHeading
);Related WEAPON natives
- _SET_VEHICLE_WEAPON_HEADING_LIMITS_2
- _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.