GET_VEHICLE_LOCK_ON_TARGET
Gets the vehicle that is locked on to for the specified vehicle.
Signature
Vehicle GET_VEHICLE_LOCK_ON_TARGET(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The vehicle to check. |
Returns Vehicle — The vehicle that is locked on. 0 returned if no vehicle is locked on.
Description
Gets the vehicle that is locked on to for the specified vehicle.
Usage
local retval = GetVehicleLockOnTarget(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0x4a557117, vehicle, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetVehicleLockOnTarget(vehicle);
// by hash
const retval = Citizen.invokeNative('0x4a557117', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x4a557117, vehicle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.