FiveM Docs
/
Native Reference
API Set:
all
server
client
Language:
raw
lua
c#
js
PLAY_STREAM_FROM_OBJECT
(Object object)
PLAY_STREAM_FROM_PED
(Ped ped)
PLAY_STREAM_FROM_POSITION
(float x, float y, float z)
PLAY_STREAM_FROM_VEHICLE
(Vehicle vehicle)
PLAY_STREAM_FRONTEND
()
PLAY_SYNCHRONIZED_AUDIO_EVENT
(int sceneId)
PLAY_VEHICLE_DOOR_CLOSE_SOUND
(Vehicle vehicle, int doorIndex)
PLAY_VEHICLE_DOOR_OPEN_SOUND
(Vehicle vehicle, int doorIndex)
PRELOAD_SCRIPT_CONVERSATION
(BOOL displaySubtitles, BOOL addToBriefScreen, BOOL cloneConversation, BOOL interruptible)
PRELOAD_SCRIPT_PHONE_CONVERSATION
(BOOL displaySubtitles, BOOL addToBriefScreen)
PRELOAD_VEHICLE_AUDIO_BANK
(Hash model)
PREPARE_ALARM
(char* alarmName)
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)