Config
Config overview
Main Config
Config.Locale = 'en'Change locale.Config.Debug(enables or disables the console logs [server,client also]) Default is set to true, set it to false if you do not want to receive any messages.Config.FactionSafesYou will need to add your faction names and safe positions here.Config.OtherInventoriesYou can insert here global inventories, house inventories or any other. (More description downwards, about the assign function.)Config.WeaponsAdd your weapons and specify the required bullets here. important, your item name should match the GTA V weapon name. eg: WEAPON_PISTOLConfig.SaveFreqHow often save the inventories.Config.DeleteItemsDeathDelete tradable/deletable items on player death or not.Config.StartingItemsStarting inventory items. (eg. player joins your server)Config.DefaultSlotsYou can change the inventory slots amount. (vehicles, safes, etc.)Config.DefaultWeightsYou can change the inventory maximum weight. (If the vehicle is defined in the config_weights.lua, then it will use the defined weight, not the default which is set here.)Config.IgnoreSlotsOnPickupIf you do not want the system, to add items instantly to your slots (1-5), then disable this, then the given item will be added from the starting slots. (6.)Config.vehicleExistDatabaseVery important! We are creating the vehicletrunks/gloveboxes on open, so when the player is near any vehicle, the system will check that the vehicle he is trying to open is really existing in the database, so we can not open npc vehicles, etc. This is not a repetetive mysql function, because when the data is loaded in, we are using simply serverside tables to store the datas.Config.isPlayerAdminAdd your admin system here, so you can use the give command.Config.getPlayerFactionAdd your faction getter here. (It should return the faction name, which is set in the Config.FactionSafes, thats how we recognize the player that he has the rights to open it.)Config.GetPlayerNameYou can change it to your roleplay name getter.Functions.SendNotificationModify it to your notification system.
Config Weights
info
This will store your vehicle storage datas.
Add your vehicles here with a defined trunk & glovebox weight.
Example
VehicleWeights = {
['blade'] = { trunk = 350, glovebox = 50 },
['buccaneer'] = { trunk = 300, glovebox = 65 }
}