Scripting/Server/Classes/Vehicle/SetRadio
Sets the radio station for everyone in the vehicle's world.
Syntax
vehicle.SetRadio(station)Arguments
- any station
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "setradio" )
{
local veh = player.Vehicle;
if ( !veh ) return MessagePlayer( "Sit in a vehicle first.", player );
veh.SetRadio( 0 );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- vehicle.Remove
- vehicle.Respawn
- vehicle.Fix
- vehicle.Explode
- vehicle.SetBurstableTyres
- player.AttachTo
- object.AttachTo
- object.AttachToBone
- vehicle.SetComponentStatus
- vehicle.SetComponentStatus
- vehicle.SetComponentAngle
- vehicle.SetComponentColour
Section: Vehicle
Categories: Server methods | Vehicle