The Lab
PED native

SET_PED_PANIC_EXIT_SCENARIO

returns BOOL4 paramsbuild 1207

Makes ped exit its scenario in panic towards the given point, returning true on success.

Signature

C
BOOL SET_PED_PANIC_EXIT_SCENARIO(Ped ped, float x, float y, float z); // 0xFE07FF6495D52E2A b1207

Parameters

#NameType
1pedPed
2xfloat
3yfloat
4zfloat

Facts

Facts about SET_PED_PANIC_EXIT_SCENARIO
Name
SET_PED_PANIC_EXIT_SCENARIO
Hash
0xFE07FF6495D52E2A
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(0xFE07FF6495D52E2A, -- SET_PED_PANIC_EXIT_SCENARIO
  PlayerPedId(), -- Ped ped
  0.0, -- float x
  0.0, -- float y
  0.0 -- float z
)
if result then
  -- ...
end
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xFE07FF6495D52E2A", // SET_PED_PANIC_EXIT_SCENARIO
  PlayerPedId(), // Ped ped
  0.0, // float x
  0.0, // float y
  0.0, // float z
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xFE07FF6495D52E2A, // SET_PED_PANIC_EXIT_SCENARIO
  API.PlayerPedId(), // Ped ped
  0.0f, // float x
  0.0f, // float y
  0.0f // float z
);
All PED natives

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