-
Notifications
You must be signed in to change notification settings - Fork 10
Setting up Config.lua
Setting up this file should be fairly easy but to make the process as seamless as possible, here are info on how to set it up !
General settings that are used by the scripts and that are fairly easy to modify.
- Config.DrawDistance : Max distance from which can be seen the storage marker (by default 20 meters)
- Config.Locale : Name of the locale file used to display text. The locale files can be modified in esx_illegalWarehouses/locale
- Set to 'en' for English
- Set to 'fr' for French
- Config.PoliceCond : Percentage of failure when the police forces are trying to lockpick a warehouse. Set to a lower value to have better odds at lockpicking open a warehouse (by default 75 %).
- Config.Policejob : Name of the job that can lockpick a warehouse. The value must be set to the name of the job as defined in the table jobs in the database.
This array lists all the info about the Warehouses (named StorageX - X being a number).
The name of each sub-array will be used by the script to identify the zone in which the player is standing and will search for the inventory with the same name (but in lowercase so for Storage1 the equivalent inventory is storage1 )
- Pos : X, Y and Z position of the marker
- Size : Size of the marker defined by X, Y and Z vectors
- Color : r, g, b values to define the colour of the marker
- Name : Display Name of the warehouse
- Type : Must the marker be displayed or not ?
- 0 = Hidden
- 1 = Shown
This is the part of the Config.lua file that will enable server administrators to add or remove access the the rent system to specific jobs.
The name of each sub-array will be used by the script to identify the job that is allowed to rent a warehouse.
When the warehouses owner tries to rent a warehouse, he will have to input the jobname of the gang, organization or in general, job. The jobname must be the same as the name defined in the table jobs in the server DB. The script will then look if the jobname entered exists in Config.Gangs so it is essential that the sub-array name must be the same as the jobname defined in the DB.
- Name = Name that will be displayed when the warehouses owner/manager opens the warehouses lists. This value can be whatever you want.