_0xF83D0FEBE75E62C9
Docs0xf83d0febe75e62c9(blip, p1, p2, width, p4, length, heading, p7)Description
Introduced in build 1290
NativeDB Added Parameter 9: int hudColour
Sets the 'data' for a cone for a blip
See here for the hud colours for the cone
Name in scripts: SETUP_FAKE_CONE_DATA()
For people who don't know how to convert degrees to radians and the other way around:
degrees = radians * 180 / pi
radians = degrees * pi / 180Parameters
| Name | Type | Description |
|---|---|---|
blip | Blip | A blip from an entity. The entity can not be a ped. The width and length will not change if it is a ped. |
p1 | Any | \-1.0 in decompiled scripts (unk) |
p2 | Any | 1.0 in decompiled scripts (unk) |
width | float | Width of the cone (0.0 to ~3.0) |
p4 | Any | 1.0 in decompiled scripts (unk) |
length | float | Length of the cone. (8.2 is 'normal' sized) |
heading | float | This heading is in radians, this can be calculated with (heading + 180.00) \* (pi/180) |
p7 | Any | 1 in decompiled scripts (unk) |
Quick Snippet: Get Coordinatesheading
headingAdd 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: Create Blipblip
blipUse this to create or reference a map blip for this native.
-- Create a blip at the player's position
local coords = GetEntityCoords(PlayerPedId())
local blip = AddBlipForCoord(coords.x, coords.y, coords.z)
SetBlipSprite(blip, 1) -- Standard blip icon
SetBlipColour(blip, 1) -- Red color
SetBlipScale(blip, 0.8)
SetBlipAsShortRange(blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentSubstringPlayerName("My Blip")
EndTextCommandSetBlipName(blip)
print("Blip created: " .. blip)Returns
voidThis native does not return a value.
Examples
Official
local ped = PlayerPedId()
local blip = AddBlipForEntity(ped)
Citizen.InvokeNative(0xF83D0FEBE75E62C9, blip, -1.0, 1.0, 0.36, 1.0, 8.2, (0.5 * math.pi), 0, 11)
SetBlipShowCone(blip, true, 11)