FIND_NEXT_VEHICLE
Signature
BOOL FIND_NEXT_VEHICLE(int findHandle, Entity* outEntity);Parameters
| Name | Type | Description |
|---|---|---|
findHandle | int | — |
outEntity | Entity* | — |
Returns BOOL
Usage
local retval, outEntity = FindNextVehicle(findHandle, outEntity)
-- always works, by hash
local retval, outEntity = Citizen.InvokeNative(0x8839120d, findHandle, Citizen.PointerValueIntInitialized(outEntity), Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, outEntity] = FindNextVehicle(findHandle, outEntity);
// by hash
const [retval, outEntity] = Citizen.invokeNative('0x8839120d', findHandle, Citizen.pointerValueIntInitialized(outEntity), Citizen.returnResultAnyway());var outEntity = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x8839120d, findHandle, outEntity);
// outEntity.GetResult<int>()- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.