FiveM Docs / Native Reference
API Set:
  • all
  • server
  • client
Language:
  • raw
  • lua
  • c#
  • js
Namespace: CFXAPI set: clientGame: gta5editImprove

GET_CALMING_QUAD_AT_COORDS

0x870E8B40
// GetCalmingQuadAtCoords
int GET_CALMING_QUAD_AT_COORDS(float x, float y);
Parameters:
  • x:

    The X coordinate

  • y:

    The Y coordinate

Returns:

The calming quad index at the given position. Returns -1 if there isn't any there.

This native returns the index of a calming quad if the given point is inside its bounds.

Examples:

  • Lua
local currentPedPosition = GetEntityCoords(PlayerPedId())
local calmingQuadIndex = GetCalmingQuadAtCoords(currentPedPosition.x, currentPedPosition.y)
Privacy
•
Cookie Policy
•
Cookie Settings
EXPERIMENTAL_SAVE_CLONE_CREATE(Entity entity)
EXPERIMENTAL_SAVE_CLONE_SYNC(Entity entity)
FIND_FIRST_OBJECT(Entity* outEntity)
FIND_FIRST_PED(Entity* outEntity)
FIND_FIRST_PICKUP(Entity* outEntity)
FIND_FIRST_VEHICLE(Entity* outEntity)
FIND_KVP(int handle)
FIND_NEXT_OBJECT(int findHandle, Entity* outEntity)
FIND_NEXT_PED(int findHandle, Entity* outEntity)
FIND_NEXT_PICKUP(int findHandle, Entity* outEntity)
FIND_NEXT_VEHICLE(int findHandle, Entity* outEntity)
FLAG_SERVER_AS_PRIVATE(BOOL private_)
FLUSH_RESOURCE_KVP()
FORCE_SNOW_PASS(BOOL enabled)
FREEZE_ENTITY_POSITION(Entity entity, BOOL toggle)
GET_ACTIVE_PLAYERS()
GET_AIR_DRAG_MULTIPLIER_FOR_PLAYERS_VEHICLE(char* playerSrc)
GET_ALL_OBJECTS()
GET_ALL_PEDS()
GET_ALL_ROPES()
GET_ALL_VEHICLE_MODELS()
GET_ALL_VEHICLES()
GET_AMBIENT_PED_RANGE_MULTIPLIER()
GET_AMBIENT_VEHICLE_RANGE_MULTIPLIER()
GET_CALMING_QUAD_AT_COORDS(float x, float y)
GET_CALMING_QUAD_BOUNDS(int waterQuad, int* minX, int* minY, int* maxX, int* maxY)
GET_CALMING_QUAD_COUNT()
GET_CALMING_QUAD_DAMPENING(int waterQuad, float* calmingQuadDampening)
GET_CAM_MATRIX(Cam camera, Vector3* rightVector, Vector3* forwardVector, Vector3* upVector, Vector3* position)
GET_CLOSEST_TRACK_NODES(Vector3 position, float radius)
GET_CONSOLE_BUFFER()
GET_CONVAR(char* varName, char* default_)
GET_CONVAR_BOOL(char* varName, BOOL defaultValue)
GET_CONVAR_FLOAT(char* varName, float defaultValue)
GET_CONVAR_INT(char* varName, int default_)