ADD_BLIP_FOR_COORD
Creates a blip for the specified coordinates.
Signature
Blip ADD_BLIP_FOR_COORD(float x, float y, float z);Parameters
| Name | Type | Description |
|---|---|---|
x | float | The X coordinate to create the blip on. |
y | float | The Y coordinate. |
z | float | The Z coordinate. |
Returns Blip — A blip handle.
Description
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
local retval = AddBlipForCoord(x, y, z)
-- always works, by hash
local retval = Citizen.InvokeNative(0xc6f43d0e, x, y, z, Citizen.ResultAsInteger())JavaScript and C#
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());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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.