Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 2.06 KB

File metadata and controls

57 lines (41 loc) · 2.06 KB

Overview

This combination map and script adds fully operational vertical-lift capabilities for the vehicle and rail draw bridges near the Port of Los Santos.

Preview

preview

Features

  • Bridge prop is server-synced for all players
  • Dynamically triggers at intervals
  • Allows player interaction for manual operation

Dependencies

Installation

Not much hassle, just drag and drop into your server's resources folder.

Support

Need help or want to chat? Join our community on Discord:

Discord Banner 2

Credits

PNWParksFan - bridge models DemiAutomatic - major rewrite in bridge movement

Video Credits

Discord Banner 2

Export Usage

exports.smoke_drawbridge:toggleBridge(index, state)

Controls the state of a bridge based on its index.

Parameters

  • index (integer)
    • The index of the bridge from the configuration (config/shared.bridges).
  • state (boolean, optional)
    • The target state for the bridge:
      • true: Opens the bridge.
      • false: Closes the bridge (default if not specified).

Description

Toggles the specified bridge. Pass true explicitly to open; false or omitting state closes it.

Example

-- Open bridge at index 1
exports.smoke_drawbridge:toggleBridge(1, true)

-- Close bridge at index 2
exports.smoke_drawbridge:toggleBridge(2)