Garage System
Installation
warning
We highly recommend you to read carefully each step written below.
Don't skip any step, it could lead to a non-functioning script.
Follow these steps to install the script
- Download this pmc-instance (fork by myself) https://github.com/s1nyx/pmc-instance/ (Go to the button "Code" > "Download ZIP")
- Unzip the downloaded file and drag the
pmc-instance
(rename it like this if it's not already th case) folder into yourresources
directory. - Download menuv https://github.com/ThymonA/menuv/releases/download/v1.4.1/menuv_v1.4.1.zip
- Unzip the downloaded file and drag the
menuv
(rename it like this if it's not already th case) folder into yourresources
directory. - Download the Garage script from KeyMaster.
- Download the "Library" script from KeyMaster.
- Drag the
s1n_garages
folder into yourresources
directory. - Rename the
s1n_garages-....
folder tos1n_garages
. - Drag the
s1n_lib
folder into yourresources
directory. - Rename the
s1n_lib-....
folder tos1n_lib
. - Start pmc-instance by adding
start pmc-instance
to yourserver.cfg
file. - Start menuv by adding
start menuv
to yourserver.cfg
file. - Start the library by adding
start s1n_lib
to yourserver.cfg
file. - Start the garage system by adding
start s1n_garages
to yourserver.cfg
file. - Configure the script by modifying the values in the
config.lua
file located in thes1n_garages
script folder. - Configure the library by modifying the values in all the files contained in the
configuration/
folder located in thes1n_lib/
script folder.
Configuration
By default there is three language translations, french, english and german that you can find in the languages directory. To load the one you want, please modify the fxmanifest file and change the "languages/english.lua" to whatever file in LUA with same structure.
note
server/api.lua will allow you to:
- custom what happens when you disconnect from the server
- custom the verification for plate ownership
client/utils.lua will allow you to:
- custom format money
- custom notifications
- custom remove vehicle logic
- custom the way to get vehicle properties
- custom the way to set vehicle properties