OpenGarage
From Liberty Unleashed Wiki
This function opens the given garage door. List of garage IDs can be found from here.
Syntax
bool OpenGarage( int garage )
Arguments
- garage - This is the ID of the garage you want to open. List of garage IDs can be found from here
Example
This will open the Portland hideout garage when the player types /opensesame
function onPlayerCommand( pPlayer, szCommand, szText ) { if ( szCommand == "opensesame" ) { OpenGarage( PORTLAND_HIDEOUT_GARAGE ); } return 1; }
Notes
The event onPlayerCommand was used in this example. More info about this in the corresponding page.
Related Functions
- CloseGarage
- CloseSSVBridge
- EnableTrains
- GetBoundariesLower
- GetBoundariesUpper
- GetFriendlyFire
- GetGamespeed
- GetGravity
- GetHour
- GetIslands
- GetMinute
- GetSSVBridgeLock
- GetSSVBridgeUpdateTime
- GetSurfaceTraction
- GetTimeLock
- GetWeather
- GetWeatherLock
- IsSSVBridgeUp
- OpenGarage
- OpenSSVBridge
- SetBoundaries
- SetFriendlyFire
- SetGamespeed
- SetGravity
- SetIslands
- SetSSVBridgeLock
- SetSSVBridgeUpdateTime
- SetSurfaceTraction
- SetTime
- SetTimeLock
- SetWeather
- SetWeatherLock