Scripting/Server/Functions/OpenGarage
Opens/closes a garage door for everyone. id is one of the *_GARAGE constants (1-26).
Syntax
OpenGarage(id)CloseGarage(id)Arguments
- int id –
idis one of the*_GARAGEconstants (1-26).
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "opengarage" )
{
OpenGarage( 0 );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- CreateVehicle
- CreateObject
- CreatePickup
- CreateWeaponPickup
- CreateSphere
- CreateClientSphere
- CreateCheckpoint
- CreateClientCheckpoint
- FindCheckpoint
- GetCheckpointCount
- CreateBlip
- CreateClientBlip
Section: Creating world entities
Categories: Server functions | Creating world entities