RedM Natives

ADD_BLIP_FOR_RADIUS

Create a blip with a radius for the specified coordinates (it doesnt create the blip sprite, so you need to use AddBlipCoords) Example image: !example This is the server-side RPC native equivalent of the client native ADD_BLIP_FOR_RADIUS.

Hash0x4626756C
Runtime nameAddBlipForRadius
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

Blip ADD_BLIP_FOR_RADIUS(float posX, float posY, float posZ, float radius);

Parameters

NameTypeDescription
posXfloat

The x position of the blip (you can also send a vector3 instead of the bulk coordinates)

posYfloat

The y position of the blip (you can also send a vector3 instead of the bulk coordinates)

posZfloat

The z position of the blip (you can also send a vector3 instead of the bulk coordinates)

radiusfloat

The number that defines the radius of the blip circle

Returns Blip — The blip handle that can be manipulated with every `SetBlip` natives

Description

Cfx.re native reference

Create a blip with a radius for the specified coordinates (it doesnt create the blip sprite, so you need to use AddBlipCoords) Example image: example

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

Usage

Lua
local retval = AddBlipForRadius(posX, posY, posZ, radius)

-- always works, by hash
local retval = Citizen.InvokeNative(0x4626756c, posX, posY, posZ, radius, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = AddBlipForRadius(posX, posY, posZ, radius);

// by hash
const retval = Citizen.invokeNative('0x4626756c', posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001, radius + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x4626756c, posX, posY, posZ, radius);
  • 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.