The Lab
PED native

IS_LOCATION_SPAWN_SAFE

returns BOOL2 paramsbuild 1207

Returns true if the location of ped is considered safe for spawning.

Signature

C
BOOL IS_LOCATION_SPAWN_SAFE(Ped ped, float p1); // 0xFB1E7998B8595825 b1207

Parameters

#NameType
1pedPed
2p1float

Facts

Facts about IS_LOCATION_SPAWN_SAFE
Name
IS_LOCATION_SPAWN_SAFE
Hash
0xFB1E7998B8595825
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(0xFB1E7998B8595825, -- IS_LOCATION_SPAWN_SAFE
  PlayerPedId(), -- Ped ped
  0.0 -- float p1
)
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("0xFB1E7998B8595825", // IS_LOCATION_SPAWN_SAFE
  PlayerPedId(), // Ped ped
  0.0, // float p1
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xFB1E7998B8595825, // IS_LOCATION_SPAWN_SAFE
  API.PlayerPedId(), // Ped ped
  0.0f // float p1
);
All PED natives

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