FiveM Docs
/
Native Reference
API Set:
all
server
client
Language:
raw
lua
c#
js
ENABLE_TENNIS_MODE
(Ped ped, BOOL toggle, BOOL p2)
END_REPLAY_STATS
()
FIND_SPAWN_POINT_IN_DIRECTION
(float posX, float posY, float posZ, float dirX, float dirY, float dirZ, float distance, Vector3* spawnPoint)
FORCE_GAME_STATE_PLAYING
()
FORCE_LIGHTNING_FLASH
()
GET_ALLOCATED_STACK_SIZE
()
GET_ANGLE_BETWEEN_2D_VECTORS
(float x1, float y1, float x2, float y2)
_GET_BASE_ELEMENT_METADATA
(Any* p1, Any* p2, Any p3, BOOL p4)
_GET_BENCHMARK_ITERATIONS_FROM_COMMAND_LINE
()
_GET_BENCHMARK_PASS_FROM_COMMAND_LINE
()
_GET_BENCHMARK_TIME
()
GET_BITS_IN_RANGE
(int var, int rangeStart, int rangeEnd)
_GET_CLOUD_HAT_OPACITY
()
GET_COORDS_OF_PROJECTILE_TYPE_IN_AREA
(float x1, float y1, float z1, float x2, float y2, float z2, Hash projectileHash, Vector3* projectilePos, BOOL ownedByPlayer)
GET_COORDS_OF_PROJECTILE_TYPE_WITHIN_DISTANCE
(Ped ped, Hash weaponHash, float distance, Vector3* outCoords, BOOL ownedByPlayer)
GET_DISTANCE_BETWEEN_COORDS
(float x1, float y1, float z1, float x2, float y2, float z2, BOOL useZ)
GET_FAKE_WANTED_LEVEL
()
GET_FRAME_COUNT
()
GET_FRAME_TIME
()
GET_GAME_TIMER
()
_GET_GLOBAL_CHAR_BUFFER
()
GET_GROUND_Z_AND_NORMAL_FOR_3D_COORD
(float x, float y, float z, float* groundZ, Vector3* normal)
GET_GROUND_Z_EXCLUDING_OBJECTS_FOR_3D_COORD
(float x, float y, float z, float* groundZ, BOOL waterAsGround)
GET_GROUND_Z_FOR_3D_COORD
(float x, float y, float z, float* groundZ, BOOL ignoreWater)
GET_HASH_KEY
(char* string)
GET_HEADING_FROM_VECTOR_2D
(float dx, float dy)
GET_INDEX_OF_CURRENT_LEVEL
()
GET_IS_AUTO_SAVE_OFF
()
_GET_IS_PLAYER_IN_ANIMAL_FORM
()
GET_LINE_PLANE_INTERSECTION
(float x1, float y1, float z1, float x2, float y2, float z2, float planeX, float planeY, float planeZ, float planeNormalX, float planeNormalY, float planeNormalZ, float* intersectionParameter)
GET_MISSION_FLAG
()
GET_MODEL_DIMENSIONS
(Hash modelHash, Vector3* minimum, Vector3* maximum)
GET_NEXT_WEATHER_TYPE_HASH_NAME
()
_GET_NUM_DISPATCHED_UNITS_FOR_PLAYER
(int dispatchService)
GET_NUM_SUCCESSFUL_STUNT_JUMPS
()