FiveM Docs
/
Native Reference
API Set:
all
server
client
Language:
raw
lua
c#
js
_DRAW_SPHERE
(float x, float y, float z, float radius, int r, int g, int b, float opacity)
DRAW_SPOT_LIGHT
(float posX, float posY, float posZ, float dirX, float dirY, float dirZ, int colorR, int colorG, int colorB, float distance, float brightness, float hardness, float radius, float falloff)
_DRAW_SPOT_LIGHT_WITH_SHADOW
(float posX, float posY, float posZ, float dirX, float dirY, float dirZ, int colorR, int colorG, int colorB, float distance, float brightness, float roundness, float radius, float falloff, int shadowId)
DRAW_SPRITE
(char* textureDict, char* textureName, float screenX, float screenY, float width, float height, float heading, int red, int green, int blue, int alpha)
_DRAW_SPRITE_POLY
(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, int red, int green, int blue, int alpha, char* textureDict, char* textureName, float u1, float v1, float w1, float u2, float v2, float w2, float u3, float v3, float w3)
_DRAW_SPRITE_POLY_2
(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, float red1, float green1, float blue1, int alpha1, float red2, float green2, float blue2, int alpha2, float red3, float green3, float blue3, int alpha3, char* textureDict, char* textureName, float u1, float v1, float w1, float u2, float v2, float w2, float u3, float v3, float w3)
_DRAW_SPRITE_UV
(char* textureDict, char* textureName, float x, float y, float width, float height, float u1, float v1, float u2, float v2, float heading, int red, int green, int blue, int alpha)
DRAW_TV_CHANNEL
(float xPos, float yPos, float xScale, float yScale, float rotation, int red, int green, int blue, int alpha)
ENABLE_ALIEN_BLOOD_VFX
(BOOL toggle)
ENABLE_CLOWN_BLOOD_VFX
(BOOL toggle)
ENABLE_MOON_CYCLE_OVERRIDE
(float phase)
ENABLE_MOVIE_KEYFRAME_WAIT
(BOOL toggle)
ENABLE_MOVIE_SUBTITLES
(BOOL toggle)
END_PETROL_TRAIL_DECALS
()
END_SCALEFORM_MOVIE_METHOD
()
END_SCALEFORM_MOVIE_METHOD_RETURN_VALUE
()
END_TEXT_COMMAND_SCALEFORM_STRING
()
_END_TEXT_COMMAND_SCALEFORM_STRING_2
()
FADE_DECALS_IN_RANGE
(float x, float y, float z, float radius, float duration)
FADE_UP_PED_LIGHT
(float p0)
FORCE_RENDER_IN_GAME_UI
(BOOL toggle)
FREE_MEMORY_FOR_HIGH_QUALITY_PHOTO
()
FREE_MEMORY_FOR_LOW_QUALITY_PHOTO
()
FREE_MEMORY_FOR_MISSION_CREATOR_PHOTO
()
_GET_ACTIVE_SCREEN_RESOLUTION
(int* x, int* y)
_GET_ASPECT_RATIO
(BOOL b)
_GET_BINK_MOVIE_TIME
(int binkMovie)
GET_CURRENT_NUMBER_OF_CLOUD_PHOTOS
()
GET_DECAL_WASH_LEVEL
(int decal)
_GET_EXTRA_TIMECYCLE_MODIFIER_INDEX
()
GET_IS_HIDEF
()
GET_IS_PETROL_DECAL_IN_RANGE
(float xCoord, float yCoord, float zCoord, float radius)
GET_IS_WIDESCREEN
()
GET_MAXIMUM_NUMBER_OF_CLOUD_PHOTOS
()
GET_MAXIMUM_NUMBER_OF_PHOTOS
()