[Release] VehicleSpawner - /vs - Config file - Categories & more!

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!

Our store: https://store.londonstudios.net/forum

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!

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

Download the resource from GitHub here.

  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

3 Likes

Absolute legend making really good resources for FiveM!

Hi,

Thanks for the feedback.

I’m glad you like the plugin.

Best wishes,
London Studios.

Anything that sets this apart from the vMenu addon vehicle section? Love your releases, keep it up! :slight_smile:

Hi,

Yes, the point is it is standalone and can be divided into categories and then has the ability to lock a vehicle, putting it out of service. This feature is used by British communities when a vehicle is crashed etc.

Best wishes,
London Studios

1 Like

update github link

Hi,

This has been resolved, not sure why the link was broken.

Thanks,
Marcus.

1 Like

Great job this will be very useful… btw is there a way that only admin can access this? would be great if that can be added

1 Like

Hello,

We will look into your suggestion and potentially implement it.

Best wishes,
London Studios

1 Like

/vs won’t work

Could You Make This Button Based?

Could you make this button based

Does anyone else have any issues opening the Menu with /vs?

1 Like

is there a way to add this for custom vehicles???

Yeah, every time I do it, the game crashes…

Any way that the menu opens on the right side instead on the left?

This is kinda stupid. At first, I loved it but this can only hold up to 77 cars. Is there a fix?

You can change it. Go to the part where it says CommandName = vs and change it to whatever you want. I did mine just addon and when you go in chat, use /whateveryouput

You can change it. Go to the part where it says CommandName = vs and change it to whatever you want. I did mine just addon and when you go in chat, use /whateveryouput and this should be fixed

Can you edit this for players to be able to spawn their owned vehicles?