Config.lua
Configuration Example
Config = {}
Config.Framework = 'auto' --> 'esx' | 'qb-core' | 'auto' | 'standalone'
Config.Language = 'en' --> 'es' | 'en'
Config.debug = false
-- 'ox_inventory' | 'origen_inventory' | 'qs_inventory' | 'My_inventory/html/images/'
Config.InventoryImages = 'ox_inventory' -- **
Config.TextType = '3D' -- '3D' | 'custom' ** [if custom edit utils/cl_utils.lua DrawCustomUI()]
Config.ProgressBars = 'Killstore' -- 'Killstore' | 'custom' ** [if custom edit utils/cl_utils.lua DrawProgressBars()]
Config.MaxAllowedItemTypes = 5 -- Maximum number of unique item types allowed in the inventory (different kinds of items)
Config.MaxStackPerItem = 10 -- Maximum quantity allowed for each individual item type (stack limit per item)
Config.MaxCharacters = 100 -- Maximum characters for Greeting Card
Config.OpenwrapMenu = 38 -- [E]
Config.menuActons = {
giveGift = { Key = 38, label = '[E]' },
saveGift = { Key = 113, label = '[G]' }, -- 47 is G key too
openGift = { Key = 74, label = '[H]' },
HideUI = { Key = 85 , label = '[Q]' },
}
Config.ScreenText = {
menuActons = { x = 0.5, y = 0.95 },
HideUI = { x = 0.95, y = 0.95 },
}
Config.GiftPackaging = {
[1] = {playerCoord = vector4(-1365.5475, 124.4543, 56.4347, 188.2137),
GiftProp = vector4(-1365.552, 123.594, 56.618, 184.5),
Job = 'giftshop', -- 'jobname' | false
JobGrade = {1, 2}, -- {#, #, #} | false
Blip = {Show = true,
Coord= vector3(-1352.2894, 123.8915, 56.2399),
Label= 'Gift Shop',
Sprite= 478,
color= 1,
scale= 0.9,
}
},
}
Config.BlackListedItems = {
'black_money',
'weed',
-- Add more items below to blacklist them
}
Gift Packaging
The Config.GiftPackaging
section defines the locations and settings for gift packaging areas. This is where players will interact to start the gift-wrapping process. Here’s a breakdown of the components:
Config.GiftPackaging allows the customization of in-game gift-wrapping stations, with each entry controlling specific location attributes:
Player Coordinates (
playerCoord
): Starting position for gift wrapping, specified as avector4
with x, y, zcoordinates and player heading.3D Text Position (
Text3D
): Position where interactive 3D text appears, usingvector4
for accurate prop placement and orientation.Map Blip (
Blip
): Visual marker on the map detailing:Show: Toggle visibility (
true
/false
).Coordinates (
Coord
): Location for blip placement.Label: Description shown on the map to identify the gift-wrapping site.
note: If you don't set Blip = { ... } it will default to Blip.Show == false. This is to reduce the number of lines and avoid unnecessary details.
Config.GiftPackaging = {
[1] = {playerCoord = vector4(-1365.5475, 124.4543, 56.4347, 188.2137), -- Player's starting coordinates
Text3D = vector4(-1365.5685, 123.7986, 56.4118, 184.2158), -- 3D text position and prop heading
Blip = {Show = true, -- Show the blip on map (true/false)
Coord= vector3(-1365.5475, 124.4543, 56.4347), -- Blip location
Label= 'Gift wrapping', -- Blip label
}
},
}
Last updated