--------------------------------
Draw Bridge Mod BETA v1.0
By PNWParksFan and Smallo
--------------------------------

PLUGIN INSTALLATION:

 - Copy the files from "GTA V Folder" to your GTA V folder
 - Make sure the most recent version of RagePluginHook is installed
 - Check if there is a newer version of RageNativeUI, and if so, download 
   and copy RageNativeUI.dll into your GTA folder 
   (https://github.com/alexguirre/RAGENativeUI/releases/latest)

Plugin is required for either version of the mod. You can install the 

DLC INSTALLATION

The DLC installation is configured for use with LML, which is recommended. Download LML from 
lcpdfr.com/lml. You can also manually install it as a DLC if you prefer. 

To install as LML package:
 - Make sure you have the latest version of LML installed
 - If you have installed any previous versions of this mod, delete the 
   previous "Draw Bridge" folder from the LML folder
 - Copy the "Draw Bridge" folder from the "map files" folder into your "LML" folder

To install as DLC: 
 - Create the folder (mods)\update\x64\dlcpacks\drawbridge
 - Copy the file "dlc.rpf" from "map files\draw bridge\dlc" to the drawbridge folder above
 - Copy "nodes368.ynd" from "map files\draw bridge\paths" to 
   "(mods)\update\update.rpf\x64\levels\gta5\paths.rpf"

A modified gameconfig.xml may be required to load this mod: 
https://github.com/pnwparksfan/gameconfig/releases/latest



USAGE:

 - Launch GTA V with RagePluginHook, and load the DrawBridge.dll plugin
 - Press F10 (default, configurable in INI) to open the Draw Bridge Menu
 - You must ENABLE the dynamic bridge first by checking the checkbox. You must be 
   near the bridge location for it to spawn. If you leave the area and the bridge 
   is down and traffic is open, it will automatically despawn to ensure performance.
 - Once bridge is enabled, stop traffic, then lower the gates. 
 - You can then control the bridge raise/lower in the menu.
 - Once bridge is fully lowered, you can open traffic and raise the gates.
 - To use auto mode, approach the bridge in a boat and blast the horn 3 times.
 - Ambient mode will open the bridge for an NPC boat occasionally when in the area.


This mod is intended for Single Player use. If you are interested converting the script 
to FiveM and have the knowledge to do so, please contact me. You may not sell any commercial 
FiveM resource that uses or requires any files from this mod without prior written permission.



You MAY record and publicly display videos and screenshots of publicly released versions 
of the mod. Please include a link to the mod download page OR to https://parksmods.com/donate/ 
in the video description or a mod list linked from the video description, for any video 
using the mod. 

This mod is publicly released to all users. You do not need to join the Parks Benefactor 
Program to use it. The mod will check for updates by connecting to parksmods.com. You must accept 
the privacy policy (available at https://members.parksmods.com/privacy/) for the update check 
to proceed. You may optionally choose to enable username integration, which sends your Rockstar 
Social Club username with the update check to show your Benefactor Program member level 
(if applicable) and other information. Members receive in-game recognition for their contributions, 
and may have additional features enabled. You will be automatically prompted to agree to the privacy 
policy and optionally enable member integration the first time you run the mod. 

Your member status is displayed in some menus. If you would like to become a 
member, visit https://parksmods.com/donate/ for information. You may choose not to display these 
menus in recorded videos or may edit out frames showing the menu altogether, but you MAY NOT crop 
the member status portion of the menu out of frames where the menu is visible.

You MAY NOT advertise commercial installation/troubleshooting/support services for Police Tape 
or other mods by PNWParksFan.

This modification is provided AS-IS with no warranty, express or implied. I (PNWParksFan) am not responsible 
for any technical or legal problems you may encounter in using or attempting to use this mod. 



Copyright (C) 2022 PNWParksFan

Credits: 

 - Mod developed by PNWParksFan
 - Smallo for the initial idea and proof of concept, 
   and for creating most of the map model files
 - alexguirre for RageNativeUI
 - dexyfex for CodeWalker
 - MulleDK & LMS for RagePluginHook 
 - LMS & G17 for developing LML
 