IS_LOCATION_SPAWN_SAFE
Returns true if the location of ped is considered safe for spawning.
Signature
BOOL IS_LOCATION_SPAWN_SAFE(Ped ped, float p1); // 0xFB1E7998B8595825 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | p1 | float |
Facts
| 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.
local result = Citizen.InvokeNative(0xFB1E7998B8595825, -- IS_LOCATION_SPAWN_SAFE
PlayerPedId(), -- Ped ped
0.0 -- float p1
)
if result then
-- ...
end// 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) {
// ...
}bool result = Function.Call<bool>((Hash)0xFB1E7998B8595825, // IS_LOCATION_SPAWN_SAFE
API.PlayerPedId(), // Ped ped
0.0f // float p1
);Related PED natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.