This combination map and script adds fully operational vertical-lift capabilities for the vehicle and rail draw bridges near the Port of Los Santos.
- Bridge prop is server-synced for all players
- Dynamically triggers at intervals
- Allows player interaction for manual operation
Not much hassle, just drag and drop into your server's resources folder.
Need help or want to chat? Join our community on Discord:
PNWParksFan - bridge models DemiAutomatic - major rewrite in bridge movement
Controls the state of a bridge based on its index.
index
(integer
)- The index of the bridge from the configuration (
config/shared.bridges
).
- The index of the bridge from the configuration (
state
(boolean
, optional)- The target state for the bridge:
true
: Opens the bridge.false
: Closes the bridge (default if not specified).
- The target state for the bridge:
Toggles the specified bridge. Pass true
explicitly to open; false
or omitting state
closes it.
-- Open bridge at index 1
exports.smoke_drawbridge:toggleBridge(1, true)
-- Close bridge at index 2
exports.smoke_drawbridge:toggleBridge(2)