_SHOOT_TRIGGER_AT_COORDS
Based on its name and signature, here is our best reading:
Appears to make ped fire at the given coordinates. Several parameters are undocumented.
Signature
Any _SHOOT_TRIGGER_AT_COORDS(Ped ped, float x, float y, float z, int p4, float p5, int p6, float p7); // 0x4C57F27D1554E6B0 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
| 5 | p4 | int |
| 6 | p5 | float |
| 7 | p6 | int |
| 8 | p7 | float |
Facts
| Name | _SHOOT_TRIGGER_AT_COORDS |
|---|---|
| Hash | 0x4C57F27D1554E6B0 |
| 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(0x4C57F27D1554E6B0, -- _SHOOT_TRIGGER_AT_COORDS
PlayerPedId(), -- Ped ped
0.0, -- float x
0.0, -- float y
0.0, -- float z
0, -- int p4
0.0, -- float p5
0, -- int p6
0.0, -- float p7
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("0x4C57F27D1554E6B0", // _SHOOT_TRIGGER_AT_COORDS
PlayerPedId(), // Ped ped
0.0, // float x
0.0, // float y
0.0, // float z
0, // int p4
0.0, // float p5
0, // int p6
0.0, // float p7
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x4C57F27D1554E6B0, // _SHOOT_TRIGGER_AT_COORDS
API.PlayerPedId(), // Ped ped
0.0f, // float x
0.0f, // float y
0.0f, // float z
0, // int p4
0.0f, // float p5
0, // int p6
0.0f // float p7
);Related PED natives
- _DISABLE_ALL_LOOK_AT_REQUESTS
- _DISABLE_AMBIENT_LOOK_AT_REQUESTS
- _GET_CATEGORY_OF_COMPONENT_AT_INDEX
- _GET_SHOP_ITEM_COMPONENT_AT_INDEX
- GET_DEAD_PED_PICKUP_COORDS
- GET_PED_BONE_COORDS
- SET_PED_SHOOT_RATE
- _SET_ACCURACY_AGAINST_LOCAL_PLAYER_MODIFIER
- _SET_ACTIVE_META_PED_COMPONENTS_UPDATED
- _SET_AMBIENT_ANIMAL_DENSITY_MULTIPLIER_THIS_FRAME
- _SET_AMBIENT_HUMAN_DENSITY_MULTIPLIER_THIS_FRAME
- _SET_AMBIENT_PED_DENSITY_MULTIPLIER_THIS_FRAME
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.