_CREATE_AIR_DEFENSE_SPHERE
Docslocal retval = CreateAirDefenseSphere(x, y, z, radius, p4, p5, p6, weaponHash)Description
Both coordinates are from objects in the decompiled scripts.
Native related to \_0xECDC202B25E5CF48 p1 value. The only weapon hash used in the decompiled scripts is weapon_air_defence_gun. These two natives are used by the yacht script, decompiled scripts suggest it and the weapon hash used (valkyrie's rockets) are also used by yachts.
Parameters
| Name | Type | Description |
|---|---|---|
x | float | X coordinate |
y | float | Y coordinate |
z | float | Z coordinate |
radius | float | Unknown float 150.0 is used in freemode script. |
p4 | float | X coordinate |
p5 | float | Y coordinate |
p6 | float | Z coordinate |
weaponHash | Hash | weapon_air_defence_gun and 0 are used in the decompiled scripts. |
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)Returns
intReturns an integer value.