1Config = {}
2
3-- ================================================================
4-- AJUSTES PRINCIPALES Y FRAMEWORK
5-- ================================================================
6
7Config.Locale = 'es' -- 'es' | 'en'
8Config.Debug = false
9
10Config.Framework = {
11 -- Options: 'auto' | 'standalone' | 'esx' | 'qbcore' | 'custom'
12 name = 'auto',
13 resources = {
14 esx = 'es_extended',
15 qbcore = 'qb-core'
16 }
17}
18
19Config.Inventory = {
20 -- Options: 'auto' | 'ox' | 'qb' | 'esx' | 'custom'
21 -- 'auto' detecta ox_inventory, qb-inventory o el inventario del framework.
22 system = 'auto'
23}
24
25Config.Interaction = {
26 -- Options: 'auto' | 'ox_target' | 'qb-target' | 'text' | 'custom'
27 system = 'auto',
28 distance = 2.5,
29 drawDistance = 12.0,
30 key = 38, -- Tecla 'E'
31 marker = {
32 enabled = true,
33 type = 2,
34 scale = vector3(0.20, 0.20, 0.20),
35 color = { r = 126, g = 58, b = 242, a = 180 }
36 }
37}
38
39Config.Notification = {
40 -- Options: 'auto' | 'esx' | 'qbcore' | 'native' | 'custom'
41 system = 'auto',
42 duration = 4500
43}
44
45-- ================================================================
46-- PERMISOS, STOCK Y PAGO
47-- ================================================================
48
49Config.Access = {
50 enabled = true,
51 mode = 'everyone', -- 'everyone' | 'job' | 'gang' | 'ace' | 'custom'
52 allowedJobs = { 'unemployed' },
53 allowedGangs = { 'ballas', 'vagos' },
54 acePermission = 'vanta.contrabando',
55 minimumGrade = 0
56}
57
58-- El stock se guarda en MySQL (una fila por articulo) y sobrevive a reinicios.
59Config.Stock = {
60 -- 'mysql' | 'memory' | 'custom'
61 storage = 'mysql',
62 driver = 'oxmysql',
63 table = 'contrabando_stock',
64 purchasesTable = 'contrabando_purchases'
65}
66
67-- El pago siempre se hace en dinero sucio. Cada framework cobra de una
68-- forma distinta sin tocar el codigo.
69Config.BlackMoney = {
70 item = 'black_money',
71 adapters = {
72 esx = { type = 'account', account = 'black_money' },
73 qbcore = { type = 'item', item = 'black_money' },
74 ox = { type = 'item', item = 'black_money' },
75 standalone = { type = 'none' },
76 custom = { type = 'custom' }
77 }
78}
79
80-- Valor limpio de cada compra (porcentaje del precio en dinero sucio).
81Config.CleanValue = 0.75
82
83Config.NPC = {
84 enabled = true,
85 model = 's_m_m_ciasec_01',
86 coords = vector4(87.6978, -1294.8325, 29.2059, 120.2885),
87 label = 'Contrabandista de armas',
88 icon = 'fa-solid fa-gun'
89}
90
91Config.Weapons = {
92 {
93 name = 'WEAPON_PISTOL',
94 label = 'Pistola',
95 dirtyPrice = 15000,
96 stock = 10
97 },
98 {
99 name = 'WEAPON_COMBATPISTOL',
100 label = 'Pistola de Combate',
101 dirtyPrice = 25000,
102 stock = 10
103 },
104 {
105 name = 'WEAPON_PISTOL_MK2',
106 label = 'Pistola MK2',
107 dirtyPrice = 40000,
108 stock = 10
109 }
110}