ResetVehicleAudioSettings
Jump to navigation
Jump to search
Syntax
bool resetVehicleAudioSettings ( vehicle theVehicle )
Required Arguments
- theVehicle: The vehicle element to reset audio settings for
Returns
Returns true if the vehicle audio settings were successfully reset, false otherwise.
Example
-- Reset audio settings for the player's current vehicle local player = getLocalPlayer() local vehicle = getPedOccupiedVehicle(player) if vehicle then local success = resetVehicleAudioSettings(vehicle) if success then outputChatBox("Vehicle audio settings have been reset to default.") else outputChatBox("Failed to reset vehicle audio settings.") end else outputChatBox("You must be in a vehicle to use this command.") end