IS_ANY_VEHICLE_NEAR_POINT
Returns true if any vehicle is within radius of the given point.
Useful to check that a spawn point is clear before creating a vehicle.
Signature
BOOL IS_ANY_VEHICLE_NEAR_POINT(float x, float y, float z, float radius); // 0x5698BA4FD04D39C4 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float |
| 2 | y | float |
| 3 | z | float |
| 4 | radius | float |
Facts
| Name | IS_ANY_VEHICLE_NEAR_POINT |
|---|---|
| Hash | 0x5698BA4FD04D39C4 |
| 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(0x5698BA4FD04D39C4, -- IS_ANY_VEHICLE_NEAR_POINT
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0 -- float radius
)
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("0x5698BA4FD04D39C4", // IS_ANY_VEHICLE_NEAR_POINT
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float radius
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x5698BA4FD04D39C4, // IS_ANY_VEHICLE_NEAR_POINT
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f // float radius
);Related VEHICLE natives
- SET_VEHICLE_MAY_BE_USED_BY_GOTO_POINT_ANY_MEANS
- IS_DRAFT_VEHICLE
- IS_ENTRY_POINT_FOR_SEAT_CLEAR
- IS_PLAYBACK_GOING_ON_FOR_VEHICLE
- IS_PLAYBACK_USING_AI_GOING_ON_FOR_VEHICLE
- IS_VEHICLE_DOOR_FULLY_OPEN
- IS_VEHICLE_DRIVEABLE
- IS_VEHICLE_EXTRA_TURNED_ON
- IS_VEHICLE_IN_BURNOUT
- IS_VEHICLE_MODEL
- IS_VEHICLE_ON_ALL_WHEELS
- IS_VEHICLE_SEAT_FREE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.