[Release] Add-On Vehicle Spawn Menu

addons
add-on
vehicle
menu
spawn

#1

Hey…

This time I am releasing a little Menu I made on request.

It allows you to spawn Add-On Vehicles. You just have to add the Spawn Names to the Add-On Vehicles.txt file


Once again I am using the GUI Managment from @MrDaGree and once again, thank you :slight_smile:



To Open the Menu press the Home / Pos1 Button on your Keyboard.


Here it is:

AddOnVehicleSpawnMenu [2.2.1].rar (51.1 KB)

VirusTotal Scan


Changelog
  • [Anything before 2.0.0]
    – History
  • [2.0.0]
    – Initial Release
  • [2.1.0]
    – Fixed the Name bug
  • [2.1.1]
    – Fixed the Controls bug (Controller conflict)
  • [2.1.2]
    – Fixed the bug that the menu isn’t opening
  • [2.1.3]
    – Added Admin Check
  • [2.2.0]
    – Added categorization
  • [2.2.1]
    – Added maximum Name Lenght (42 Characters)
    – Added the possibility to disable categorization

You can enable/disable categorization in the Config and on the Settings Page.

(How to) Install the resource
  1. Download it
  2. Extract the content of the Archive into your resource folder
  3. Add start AddOnVehicleSpawnMenu to your server.cfg
  4. Add your Add-On Vehicles to the Add-On Vehicles.txt
  5. Profit
(How to) Use and configure the menu

It is also possible to open the menu settings through keeping the Page Up pressed and pressing the Home / Pos1 Button on your Keyboard.

You can pre-configure the menu and allow or deny player to open the menu settings by editing the values in the config.lua.

(How to) Add Add-On Vehicles
  1. Open the Add-On Vehicles.txt
  2. Add ONE Vehicle for each line
  3. Add the name you use to spawn the Vehicle after 'SpawnName: ’
  4. Add the name which should be shown in the menu after 'DisplayName: ’
(How to) Add Admins

If you use ESMode, skip to Step 4

  1. Open the Admins.txt
  2. Add Admins in the given format
  3. Save the Admins.txt
  4. Open the config.lua
  5. Change false to true on Line 24
Line 23		--Change "false" to "true" to disable the Menu for Non-Admins
Line 24		OnlyForAdmins = true
  1. Profit

Like! Found a bug? Any suggestion? Feel free to comment below!


[Viktor's] Car Addon Pack [50 Addon Cars]
Altered COPS Menu
#2

hey flatracer how do i install the resource ?


#3
  1. Download it
  2. Extract the content of the Archive into your resource folder
  3. Add start AddOnVehicleSpawnMenu to your server.cfg
  4. Add your Add-On Vehicles to the Add-On Vehicles.txt
  5. Profit

#4

Hi. First well done:D My question i can spawn my addons normal so all working fine there is only one thing. In the menu all vehicle spawn names are “NULL”. So you can spawn them but don´t really know which one you are spawning at moment. Is there a way to also set the carname which shows in the menu?


#5

Thanks for this menu. I have a small suggestion. It would be better if we could categorize the vehicles by brand.


#6

Seeing the exact same thing, if i can edit the names of it, to add it more professional like. I’d be glad to use this source


#7

I will do something about this when I am back from work.


#8

No pics no clicks.

/s


#9

I have no Add-Ons, I can’t make pics :frowning_face:

JK, will add some later


#10

Updated to v2.1.0



  • Fixed the problem with the Names showing as ‘NULL’
  • Added a Picture to the Topic


Download in the First Post!


#11

I love it thank you. Added like 60 replace/addon cars and it works like a charm.


#12

You’re welcome



#13

Thx Flatracer very nice :smiley:


#14

You’re welcome



#15

says server.lue can not load???


#16

InvokeNative: execution failed: type must be object, but is array
Error loading script server/server.lua in resource AddOnVehicleSpawnMenu: Execution of native 000000008e8cc653 in script host failed.
stack traceback:
[C]: in upvalue '_in’
citizen:/scripting/lua/natives_server.lua:190: in function 'PerformHttpRequestInternal’
citizen:/scripting/lua/scheduler.lua:233: in function 'PerformHttpRequest’
server/server.lua:5: in main chunk


#17

Is there any way you could add the ability in the txt file to determine which extras and liveries a vehicle will spawn with? That would be awesome.


#19

Could you please not release something in my thread, thanks :blush:


#20

Sorry, but i can’t create a new topic in releases :frowning:


#21

Create a new thread in the discussion section and flag it to be moved.