FiveM Docs
/
Native Reference
API Set:
all
server
client
Language:
raw
lua
c#
js
SET_ENTITY_ANIM_SPEED
(Entity entity, char* animDictionary, char* animName, float speedMultiplier)
SET_ENTITY_AS_MISSION_ENTITY
(Entity entity, BOOL scriptHostObject, BOOL bGrabFromOtherScript)
SET_ENTITY_AS_NO_LONGER_NEEDED
(Entity* entity)
SET_ENTITY_CAN_BE_DAMAGED
(Entity entity, BOOL toggle)
SET_ENTITY_CAN_BE_DAMAGED_BY_RELATIONSHIP_GROUP
(Entity entity, BOOL bCanBeDamaged, int relGroup)
SET_ENTITY_CAN_BE_TARGETED_WITHOUT_LOS
(Entity entity, BOOL toggle)
_SET_ENTITY_CLEANUP_BY_ENGINE
(Entity entity, BOOL toggle)
SET_ENTITY_COLLISION
(Entity entity, BOOL toggle, BOOL keepPhysics)
SET_ENTITY_COMPLETELY_DISABLE_COLLISION
(Entity entity, BOOL toggle, BOOL keepPhysics)
SET_ENTITY_COORDS
(Entity entity, float xPos, float yPos, float zPos, BOOL alive, BOOL deadFlag, BOOL ragdollFlag, BOOL clearArea)
SET_ENTITY_COORDS_NO_OFFSET
(Entity entity, float x, float y, float z, BOOL keepTasks, BOOL keepIK, BOOL doWarp)
SET_ENTITY_COORDS_WITHOUT_PLANTS_RESET
(Entity entity, float xPos, float yPos, float zPos, BOOL alive, BOOL deadFlag, BOOL ragdollFlag, BOOL clearArea)
_SET_ENTITY_DECALS_DISABLED
(Entity entity, BOOL p1)
SET_ENTITY_DYNAMIC
(Entity entity, BOOL toggle)
SET_ENTITY_HAS_GRAVITY
(Entity entity, BOOL toggle)
SET_ENTITY_HEADING
(Entity entity, float heading)
SET_ENTITY_HEALTH
(Entity entity, int health)
SET_ENTITY_INVINCIBLE
(Entity entity, BOOL toggle)
SET_ENTITY_IS_TARGET_PRIORITY
(Entity entity, BOOL p1, float p2)
SET_ENTITY_LIGHTS
(Entity entity, BOOL toggle)
SET_ENTITY_LOAD_COLLISION_FLAG
(Entity entity, BOOL toggle)
SET_ENTITY_LOD_DIST
(Entity entity, int value)
SET_ENTITY_MAX_HEALTH
(Entity entity, int value)
SET_ENTITY_MAX_SPEED
(Entity entity, float speed)
SET_ENTITY_MOTION_BLUR
(Entity entity, BOOL toggle)
SET_ENTITY_NO_COLLISION_ENTITY
(Entity entity1, Entity entity2, BOOL thisFrameOnly)
SET_ENTITY_ONLY_DAMAGED_BY_PLAYER
(Entity entity, BOOL toggle)
SET_ENTITY_ONLY_DAMAGED_BY_RELATIONSHIP_GROUP
(Entity entity, BOOL p1, Hash relationshipHash)
SET_ENTITY_PROOFS
(Entity entity, BOOL bulletProof, BOOL fireProof, BOOL explosionProof, BOOL collisionProof, BOOL meleeProof, BOOL steamProof, BOOL p7, BOOL drownProof)
SET_ENTITY_QUATERNION
(Entity entity, float x, float y, float z, float w)
SET_ENTITY_RECORDS_COLLISIONS
(Entity entity, BOOL toggle)
SET_ENTITY_RENDER_SCORCHED
(Entity entity, BOOL toggle)
SET_ENTITY_REQUIRES_MORE_EXPENSIVE_RIVER_CHECK
(Entity entity, BOOL toggle)
SET_ENTITY_ROTATION
(Entity entity, float pitch, float roll, float yaw, int rotationOrder, BOOL bDeadCheck)
SET_ENTITY_TRAFFICLIGHT_OVERRIDE
(Entity entity, int state)