🛠️Config
TZMCLockersConfig = {}
--[[
INSTALLATION
1. Navigate to ..[qb]\qb-inventory\server\main.lua
2. Navigate to around line 632 just below the if statement "if other then"
3. Underneath that if statement, paste the following text
if other.label == nil then
secondInv.label = "Stash-"..id
else
secondInv.label = other.label
end
4. Once pasted, delete the duplicate "secondInv.name = "stash-"..id" that is underneath the if statement you just pasted.
5. You're done, it should look like this. https://ibb.co/31pXjWL
Database Install
Within the tzmc-lockers.sql file, run the SQL query within your database. This will create a new table called tzmc_lockers.
]]--
-- LOCKER SETTINGS --
TZMCLockersConfig.LockerWeight = 4000000
TZMCLockersConfig.LockerSlots = 500
-- NOTIFICATIONS --
TZMCLockersConfig.UseQBNotify = true
TZMCLockersConfig.NotificationEvent = "" -- If you're using your own notification system, enter the event here. If you leave this blank and set QBNotify to false this will use the FiveM chat to notify the player. The parameters are (text, status) Status can be either 'success' or 'error'.
TZMCLockersConfig.SuccessTitle = 'Success'
TZMCLockersConfig.ErrorTitle = 'Error'
TZMCLockersConfig.IncorrectPassword = 'Password Incorrect'
TZMCLockersConfig.LockerCreated = 'Your locker has been created!'
TZMCLockersConfig.EmptyPassword = "You can't have an empty password"
TZMCLockersConfig.LockerExists = "It appears that someone already has this locker"
--[[
LOCKER LOCATIONS
{
id = string, -- This is the ID of the locker, this will need to be unique as this checks based off the locker ID
prettyName = string, -- This is the pretty name of the locker, this will be shown on the top of the screen when accessing the locker.
location = vector3(X, Y, Z), -- This is the coords of the locker, preferably the centre
heading = float, -- This is the heading of the poly zone that is used in QB-Target
polyLength = float, -- This is the length of the poly zone that is used in QB-Target
polyWidth = float, -- This is the width of the poly zone that is used in QB-Target
debug = bool -- This is used to check your poly in-game
}
]]
TZMCLockersConfig.Locations = {
{
id = 'PDLockerRoom1',
prettyName = 'PD Locker Room',
location = vector3(457.6, -987.93, 31.13),
heading = 359.51,
polyLength = 1.5,
polyWidth = 1.5,
debug = false
},
{
id = 'PDLockerRoom2',
prettyName = 'PD Locker Room',
location = vector3(457.89, -993.7, 31.13),
heading = 181.34,
polyLength = 1.5,
polyWidth = 1.5,
debug = false
}
}
Last updated