Today i bring you a heavily HEAVILY edited version of Plysken Garages, This was a port of his Garages2 script that was made specificly for my old server, Me and Syntasu then heavily modified and edited it to work with FX and then added our own features!
What can this garage do over others?
One public garage for all to use (limited slots)
Ability to buy more garages with higher save slots. (configured in DB)
Saves vehicles modifications.
Unable to dupe cars.
You HAVE to register your vehicle at the red blip after purcahse or you will loose your vehicle (handy if you have a licence system.)
You cant sell your garage if your garage has a car stored.
If you leave your car out and log off, Your car will be sent back to the public garage.
This resource for me worked brilliantly especially if your all about keeping away from ESX and vRP and want to just use essentialmode as your base.
REQUIRMENTS:
EssentialMode
MySQL-Async
Other dependencies are in the files.
HOW DO I ADD CUSTOM VEHICLES?
Go to fs_freemode/stores/vehshop.lua and add your vehicles here, Also make sure to add them to your DB aswell!
EDIT: Seen as this uses essentialmode its quite possible that it may work with ESX, Could always try but I cant promise anything.
You will notice there is 4 resources and 1 SQL file.
So please make sure you add all 3 resources to your server.cfg!!
This script comes with its own edited vehicle shop as ofcourse they all have to work in sync, Its nothing spectacular as its actually pretty old now, But wouldnt take much to liven it up.
INSTALLATION!
Add all four resources to your server.cfg
Add this in your users table personalvehicle varchar(55) DEFAULT NULL
Run the SQL file provided in the download.
Start your server and enjoy!
NOTE: I will only give very breif help with this resources installation, Just follow the installation as stated and you shouldnt have any issues.
Massive thank you to @Plysken_Rayder for origianlly making this script for my server (He gives his permission ofcourse) and also Syntasu for his godly coding skills getting this resource to where it is at now!
Very nice work keep it up buddy and love the feature where garage don’t show unless got a car and then changes colour when car is stored and charges electric cars its awesome.
[ERROR] [MySQL] [TPRP_prefecture] An error happens on MySQL for query “[object Object]”: ER_NO_SUCH_TABLE: Table ‘essentialmode.licences’ doesn’t exist
While i do have this table!
Also, i can’t change the vehicles in the databse, it does not read my custom vehicles.
Can you make this for the new eden_garage2 update?
But we also got this error: [ERROR] [MySQL] [TPRP_prefecture] An error happens on MySQL for query “[object Object]”: ER_BAD_FIELD_ERROR: Unknown column ‘personalvehicle’ in ‘field list’
Ive not actually tried this with ESX, But it uses essentialmode so it should technicly work with it, You will just have to edit some ESX resources such as dmvschool, policejob etc to use your new DB instead! Shouldnt be too hard to get it working as it should work on a ESX base server
Let me know how you get on, Also if your confident in making this work for ESX go ahead i can always add a ESX version in the description Im sure people would be very greatful!
I can buy (stock) vehicles. ← i added 100 custom cars in vehicles database and no stock cars :')
I can buy and sell a garage
But, if i want to store a vehicles got the message ‘this is not your vehicle’ so i go to the car register.
If i register my car i got this error: SCRIPT ERROR: @TPRP_prefecture/server.lua:80: attempt to index a nil value (field ‘?’)
and no registration