RedM Natives

GET_VEHICLE_HOMING_LOCKON_STATE

Gets the lock on state for the specified vehicle.

Hash0xFBDE9FD8
Runtime nameGetVehicleHomingLockonState
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

int GET_VEHICLE_HOMING_LOCKON_STATE(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle

The vehicle to check.

Returns int — The lock on state.

Description

Cfx.re native reference

Gets the lock on state for the specified vehicle. See the client-side GET_VEHICLE_HOMING_LOCKON_STATE native for a description of lock on states.

Usage

Lua
local retval = GetVehicleHomingLockonState(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0xfbde9fd8, vehicle, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetVehicleHomingLockonState(vehicle);

// by hash
const retval = Citizen.invokeNative('0xfbde9fd8', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xfbde9fd8, vehicle);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.