_DETECT_PLAYER_SHOT_NEAR_PED
Returns true if player fired a shot near ped within the last shotNearTimeMs milliseconds.
Signature
BOOL _DETECT_PLAYER_SHOT_NEAR_PED(Player player, Ped ped, int shotNearTimeMs); // 0x9C81338B2E62CE0A b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | ped | Ped |
| 3 | shotNearTimeMs | int |
Facts
| Name | _DETECT_PLAYER_SHOT_NEAR_PED |
|---|---|
| Hash | 0x9C81338B2E62CE0A |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x9C81338B2E62CE0A, -- _DETECT_PLAYER_SHOT_NEAR_PED
PlayerId(), -- Player player
PlayerPedId(), -- Ped ped
0 -- int shotNearTimeMs
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x9C81338B2E62CE0A", // _DETECT_PLAYER_SHOT_NEAR_PED
PlayerId(), // Player player
PlayerPedId(), // Ped ped
0, // int shotNearTimeMs
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x9C81338B2E62CE0A, // _DETECT_PLAYER_SHOT_NEAR_PED
API.PlayerId(), // Player player
API.PlayerPedId(), // Ped ped
0 // int shotNearTimeMs
);Related PED natives
- _DOES_META_PED_OUTFIT_EXIST_FOR_PED_MODEL
- _DOES_META_PED_SUBOUTFIT_EXIST_FOR_PED_MODEL
- _APPLY_PED_META_PED_OUTFIT
- _CAN_PED_HEAR_TARGET_PED
- _CREATE_META_PED_OUTFIT_PED
- _GET_IS_PED_IN_DISPUTE_WITH_PED
- _GET_PED_HAS_INTERACTED_WITH_PLAYER
- _GET_PED_HAS_SIMPLE_PLAYER_MEMORY_CHANGED
- _GET_PED_WHO_HOGITIED_THIS_PED
- _GET_PLAYER_PED_WATER_DEPTH
- _HAS_PED_SHOT_RECENTLY
- _PED_DUELING_DID_PLAYER_HEADSHOT_OPPONENT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.