Skip to content

LondonStudios/VehicleSpawner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

London Studios

London Studios - Update

Since forming London Studios in April 2020 we've created a number of high quality and premium resources for the FiveM project, focusing on the emergency services and aiming to bring your server to the next level.

Although we made a number of free resources such as this one in the first year, we've now switched to creating paid content, keeping them constantly updated and working along with providing the best possible support to our customers.

Our most popular resources now include Smart Fires, Police Grappler and Smart Hose.

With thousands of happy customers we are confident you'll love our resources and our active support team are on hand to help if you have any questions!

Therefore, this resource is now likely out of date and is no longer supported by us. The full source code is available should you wish to make any changes. All of our paid resources however are constantly updated and we invite you to take a look!

VehicleSpawner - London Studios

VehicleSpawner is a FiveM resource coded in C# allowing you to create a custom vehicle spawner menu with categories and the ability to mark a vehicle "out of service", locking it from being spawned.

This plugin is made by LondonStudios, we have created a variety of releases including TaserFramework, SearchHandler, ActivateAlarm, SmartTester, SmartSounds, CustodyAlarm, SmartObservations and more!

Join our Discord HERE.

Buy Me A Coffee

VehicleSpawner

Usage

/vs - Open or close the vehicle spawner menu

This command is changeable in the config.ini file, please see below for more information.

Installation

  1. Create a new resource folder on your server.
  2. Add the contents of "resource" inside it. This includes: "Client.net.dll", "fxmanifest.lua", "config.ini", "SharpConfig.dll", "NativeUI.dll"
  3. In server.cfg, "ensure" VehicleSpawner, to make it load with your server startup.

Configuration

The "config.ini" file allows you to add categories and vehicles to the menu, you are also able to change the comamnd used to open/close it.

[VehicleSpawner]
DisabledVehicles = {policeb, police2} # These will appear out of service
CommandName = vs

[FP: Frontline Policing]
irv = IRV Vauxhall Astra
irv2 = IRV I3

[Category Name]
spawncode = Name on menu
policet = Police Transport

On line 2, you can add Disabled Vehicles, these will appear out of service and locked on the menu. On line 3, you can set the CommandName to open the menu. Do not add "/".

Creating a category: All categories must start with [Category Name] on a new line.

Adding vehicles to a category: You must list vehicles under the relevant category you want them to appear in. spawncode = Name on menu eg, police = Police Cruiser

Source Code

Please find the source code in the "src" folder. Please ensure you follow the licence in "LICENCE.md".

Feedback

We appreciate feedback, bugs and suggestions related to VehicleSpawner and future plugins. We hope you enjoy using the resource and look forward to hearing from people!

Screenshots

Take a look at some screenshots of the plugin in action!

VehicleSpawner

VehicleSpawner

About

A customisable FiveM vehicle spawn menu, coded in C#.

Resources

License

Stars

Watchers

Forks

Packages

No packages published