RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. SET_ENTITY_COORDS

SET_ENTITY_COORDS

Sets the coordinates (world position) for a specified entity, offset by the radius of the entity on the Z axis. **This is the server-side RPC native equivalent of the client native [SET_ENTITY_COORDS](?\_0x06843DA7060A026B).**

CFX

Signature

lua
SetEntityCoords(entity, 0.0, 0.0, 0.0, true, true, true, true)
-- returns void

Parameters

NameTypeDescription
EntityThe entity to change coordinates for.
floatThe X coordinate.
floatThe Y coordinate.
floatThe Z coordinate, ground level.
BOOLUnused by the game, potentially used by debug builds of GTA in order to assert whether or not an entity was alive.
BOOLWhether to disable physics for dead peds, too, and not just living peds.
BOOLA special flag used for ragdolling peds.
BOOLWhether to clear any entities in the target area.

Usage

lua
SetEntityCoords(entity, 0.0, 0.0, 0.0, true, true, true, true)

Generated from the native name, hash, and parameter list. Add a real example.

Details

Hash
API set
Source
cfx

Source: cfx

On this page

  • Signature
  • Parameters
  • Usage
  • Details