FiveM Docs
/
Native Reference
API Set:
all
server
client
Language:
raw
lua
c#
js
PREPARE_MUSIC_EVENT
(char* eventName)
PREPARE_SYNCHRONIZED_AUDIO_EVENT
(char* audioEvent, int startOffsetMs)
PREPARE_SYNCHRONIZED_AUDIO_EVENT_FOR_SCENE
(int sceneId, char* audioEvent)
RECORD_BROKEN_GLASS
(float x, float y, float z, float radius)
REFRESH_CLOSEST_OCEAN_SHORELINE
()
REGISTER_SCRIPT_WITH_AUDIO
(BOOL inChargeOfAudio)
RELEASE_AMBIENT_AUDIO_BANK
()
RELEASE_MISSION_AUDIO_BANK
()
RELEASE_NAMED_SCRIPT_AUDIO_BANK
(char* audioBank)
RELEASE_SCRIPT_AUDIO_BANK
()
RELEASE_SOUND_ID
(int soundId)
RELEASE_WEAPON_AUDIO
()
REMOVE_ENTITY_FROM_AUDIO_MIX_GROUP
(Entity entity, float fadeOut)
REMOVE_PORTAL_SETTINGS_OVERRIDE
(char* portalSettingsName)
REQUEST_AMBIENT_AUDIO_BANK
(char* bankName, BOOL bOverNetwork)
REQUEST_MISSION_AUDIO_BANK
(char* bankName, BOOL bOverNetwork)
REQUEST_SCRIPT_AUDIO_BANK
(char* bankName, BOOL bOverNetwork)
REQUEST_TENNIS_BANKS
(Ped opponentPed)
RESET_PED_AUDIO_FLAGS
(Ped ped)
RESET_TREVOR_RAGE
()
RESET_VEHICLE_STARTUP_REV_SOUND
(Vehicle vehicle)
RESTART_SCRIPTED_CONVERSATION
()
SCRIPT_OVERRIDES_WIND_ELEVATION
(BOOL override, Hash windElevationHashName)
SET_AGGRESSIVE_HORNS
(BOOL toggle)
SET_AMBIENT_VOICE_NAME
(Ped ped, char* voiceName)
SET_AMBIENT_VOICE_NAME_HASH
(Ped ped, Hash hash)
SET_AMBIENT_ZONE_LIST_STATE
(char* zoneListName, BOOL enabled, BOOL forceUpdate)
SET_AMBIENT_ZONE_LIST_STATE_PERSISTENT
(char* ambientZone, BOOL enabled, BOOL forceUpdate)
SET_AMBIENT_ZONE_STATE
(char* zoneName, BOOL enabled, BOOL forceUpdate)
SET_AMBIENT_ZONE_STATE_PERSISTENT
(char* zoneName, BOOL enabled, BOOL forceUpdate)
SET_ANIMAL_MOOD
(Ped animal, int mood)
SET_AUDIO_FLAG
(char* flagName, BOOL toggle)
SET_AUDIO_SCENE_VARIABLE
(char* scene, char* variableName, float value)
SET_AUDIO_SCRIPT_CLEANUP_TIME
(int timeMs)
SET_AUDIO_SPECIAL_EFFECT_MODE
(int mode)