GET_VEHICLE_HOMING_LOCKON_STATE
Gets the lock on state for the specified vehicle.
Signature
int GET_VEHICLE_HOMING_LOCKON_STATE(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The vehicle to check. |
Returns int — The lock on state.
Description
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
local retval = GetVehicleHomingLockonState(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0xfbde9fd8, vehicle, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetVehicleHomingLockonState(vehicle);
// by hash
const retval = Citizen.invokeNative('0xfbde9fd8', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xfbde9fd8, vehicle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.