Skip to content
Spawn vehicles in different locations when the first player connects.
Lua
Branch: master
Clone or download
Latest commit 88e37ea Dec 3, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vehicles Example files Oct 8, 2018
README.md README update Oct 9, 2018
__resource.lua Version Checker Oct 9, 2018
cl_bootvehicles.lua persistance update Dec 3, 2018
sv_bootvehicles.lua Save Vehice Plates Nov 23, 2018
vehicle_positions.txt blank vehicle position file Oct 8, 2018
version.lua Extras and version update Dec 3, 2018
version.txt Whitespace Oct 9, 2018

README.md

Boot Vehicles

This resource will spawn configured vehicles when the first player joins on your server. This allows the vehicles to be networked for all players to see! This resource adds roleplay when configuring vehicles to be at police stations, fire stations, etc. Just simply spawn a vehicle, drive it where you want, append it to the configuration via a command and you're done!

Share vehicle files easily, just slap the locations text file in, and add it to the meta!

Save locations/sets easily by just renaming the file and adding it to the meta, so they can keep stuff separated and organized!

The following is a showcase of the resource in action:

https://www.youtube.com/watch?v=V5jG9oEFoMA

Developers: You can add a boot_vehicles list as a file in your own resource. Simply add boot_vehicle_file 'filename.txt' to your resource meta. More files can also be added directly to the main resource instead of via an external resource.

Commands gvposa - Appends the current vehicle the player is in to the vehicle_positions.txt file inside the resource. gvpos - Prints current vehicle model hash, X, Y, Z, and heading (Use for debug purposes) gvpos_trigger - Manually triggers the vehicles to spawn.

Configuration The vehicle locations text file is located in the same location as the resource, this file is called vehicle_locations.txt.

Included are a couple example vehicle sets, you can add and remove these files in the resource meta to your liking.

After you are done setting vehicle locations please change the DEBUG variable in the cl_bootvehicles.lua to false

Big shoutout to @glitchdetector for contributing; a lot of the recent additions are all thanks to him!

You can’t perform that action at this time.