The Lab
PED native

_GET_IS_PED_BEING_ROBBED

returns BOOL3 paramsbuild 1207

Returns true if player is robbing ped; trueUntilPlayerPocketsItem keeps it true until the loot is taken.

Signature

C
BOOL _GET_IS_PED_BEING_ROBBED(Ped ped, Player player, BOOL trueUntilPlayerPocketsItem); // 0xE33F98BD76490ABC b1207

Parameters

#NameType
1pedPed
2playerPlayer
3trueUntilPlayerPocketsItemBOOL

Facts

Facts about _GET_IS_PED_BEING_ROBBED
Name
_GET_IS_PED_BEING_ROBBED
Hash
0xE33F98BD76490ABC
Namespace
Returns
BOOL
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(0xE33F98BD76490ABC, -- _GET_IS_PED_BEING_ROBBED
  PlayerPedId(), -- Ped ped
  PlayerId(), -- Player player
  false -- BOOL trueUntilPlayerPocketsItem
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xE33F98BD76490ABC", // _GET_IS_PED_BEING_ROBBED
  PlayerPedId(), // Ped ped
  PlayerId(), // Player player
  false, // BOOL trueUntilPlayerPocketsItem
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xE33F98BD76490ABC, // _GET_IS_PED_BEING_ROBBED
  API.PlayerPedId(), // Ped ped
  API.PlayerId(), // Player player
  false // BOOL trueUntilPlayerPocketsItem
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.