General Exports
This page explains the available client-side exports for the r_megaphone and their usage. These exports allow you to interact with the script programmatically from other resources.
1. Exports Overview
1.1 Load Megaphone for a Vehicle
exports['r_megaphone']:LoadVehicleMegaphone(vehicle)Description: This export enables the megaphone system in a specific vehicle without having to define it in the configuration.
Parameters:
vehicle: The vehicle entity where you want to activate the megaphone system.
Example Usage:
exports['r_megaphone']:LoadVehicleMegaphone(GetVehiclePedIsIn(PlayerPedId(), false))1.2 Unload Megaphone from a Vehicle
exports['r_megaphone']:UnloadVehicleMegaphone(vehicle)Description:
This export disables the megaphone system on a vehicle that was previously loaded using LoadVehicleMegaphone().
Parameters:
vehicle: The vehicle entity where you want to disable the megaphone system.
Example Usage:
exports['r_megaphone']:UnloadVehicleMegaphone(GetVehiclePedIsIn(PlayerPedId(), false))Last updated