Skip to content

Skryptific/smoke_drawbridge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Interactive vertical-lift bridges in Los Santos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%