RedM Natives

ADD_BLIP_FOR_COORD

Creates a blip for the specified coordinates.

Hash0xC6F43D0E
Runtime nameAddBlipForCoord
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

Blip ADD_BLIP_FOR_COORD(float x, float y, float z);

Parameters

NameTypeDescription
xfloat

The X coordinate to create the blip on.

yfloat

The Y coordinate.

zfloat

The Z coordinate.

Returns Blip — A blip handle.

Description

Cfx.re native reference

Creates a blip for the specified coordinates. You can use SET_BLIP_ natives to change the blip.

This is the server-side RPC native equivalent of the client native ADD_BLIP_FOR_COORD.

Usage

Lua
local retval = AddBlipForCoord(x, y, z)

-- always works, by hash
local retval = Citizen.InvokeNative(0xc6f43d0e, x, y, z, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = AddBlipForCoord(x, y, z);

// by hash
const retval = Citizen.invokeNative('0xc6f43d0e', x + 0.0000001, y + 0.0000001, z + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xc6f43d0e, x, y, z);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.