SetHeliCombatOffset
DocsSetHeliCombatOffset(vehicle, x, y, z)Description
Introduced in build 1180
Set a specific offset for helis chasing target in combat
Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | Helicopter for which the combat offset is being set. |
x | float | Offset along the X-axis (left/right) relative to the helicopter's current position and orientation |
y | float | Offset along the Y-axis (forward/backward) relative to the helicopter's current position and orientation |
z | float | Offset along the Z-axis (up/down) relative to the helicopter's current position and orientation. |
Quick Snippet: Get Coordinatesxyz
xyzAdd this command to your client script to retrieve precise locations in-game.
-- Add this to your client.lua. Type /pos in-game to copy coords.
RegisterCommand('pos', function()
local ped = PlayerPedId()
local coords = GetEntityCoords(ped)
local heading = GetEntityHeading(ped)
local output = string.format("vector4(%.2f, %.2f, %.2f, %.2f)", coords.x, coords.y, coords.z, heading)
print(output)
TriggerEvent('chat:addMessage', { args = { '^4[COORD]^0', output } })
end)Quick Snippet: Get Vehiclevehicle
vehicleUse this to get the current vehicle handle for this native.
-- Get the vehicle the player is currently in
local ped = PlayerPedId()
local vehicle = GetVehiclePedIsIn(ped, false)
if vehicle ~= 0 then
print("Vehicle handle: " .. vehicle)
print("Model: " .. GetEntityModel(vehicle))
else
print("Player is not in a vehicle")
endVehicle Models

adder
alpha
blade
ardent
asea
cogcabrio
baller
blistaReturns
voidThis native does not return a value.