IS_LOCATION_SPAWN_SAFE
Hash
0xFB1E7998B8595825Runtime name
IsLocationSpawnSafeNamespacePED
SideClient
NameOfficial
Docs
Since build1207
Signature
BOOL IS_LOCATION_SPAWN_SAFE(Ped ped, float p1);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
p1 | float | — |
Returns BOOL
Usage
local retval = IsLocationSpawnSafe(ped, p1)
-- always works, by hash
local retval = Citizen.InvokeNative(0xFB1E7998B8595825, ped, p1, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsLocationSpawnSafe(ped, p1);
// by hash
const retval = Citizen.invokeNative('0xFB1E7998B8595825', ped, p1 + 0.0000001, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xFB1E7998B8595825, ped, p1);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.