Comments (2)
He forgot a bracket in every line from line 43... Replace the code from line 41 to line 111 with the code below and it will be good
if Config.AdvancedVehicleShop then
if not ownedLicenses['aircraft'] then
table.insert(elements, {label = ('%s - <span style="color: green;">%s</span>'):format(_U('license_aircraft'), _U('shop_menu_item', ESX.Math.GroupDigits(Config.Prices.Aircraft))), value = 'buy_license_aircraft'})
end
if not ownedLicenses['boating'] then
table.insert(elements, {label = ('%s - <span style="color: green;">%s</span>'):format(_U('license_aircraft'), _U('shop_menu_item', ESX.Math.GroupDigits(Config.Prices.Boating))), value = 'buy_license_boating'})
end
end
if Config.AdvancedWeaponShop then
if not ownedLicenses['weapon_melee'] then
table.insert(elements, {label = ('%s - <span style="color: green;">%s</span>'):format(_U('license_aircraft'), _U('shop_menu_item', ESX.Math.GroupDigits(Config.Prices.Melee))), value = 'buy_license_melee'})
end
if not ownedLicenses['weapon_handgun'] then
table.insert(elements, {label = ('%s - <span style="color: green;">%s</span>'):format(_U('license_aircraft'), _U('shop_menu_item', ESX.Math.GroupDigits(Config.Prices.Handgun))), value = 'buy_license_handgun'})
end
if not ownedLicenses['weapon_smg'] then
table.insert(elements, {label = ('%s - <span style="color: green;">%s</span>'):format(_U('license_aircraft'), _U('shop_menu_item', ESX.Math.GroupDigits(Config.Prices.SMG))), value = 'buy_license_smg'})
end
if not ownedLicenses['weapon_shotgun'] then
table.insert(elements, {label = ('%s - <span style="color: green;">%s</span>'):format(_U('license_aircraft'), _U('shop_menu_item', ESX.Math.GroupDigits(Config.Prices.Shotgun))), value = 'buy_license_shotgun'})
end
if not ownedLicenses['weapon_assault'] then
table.insert(elements, {label = ('%s - <span style="color: green;">%s</span>'):format(_U('license_aircraft'), _U('shop_menu_item', ESX.Math.GroupDigits(Config.Prices.Assault))), value = 'buy_license_assault'})
end
if not ownedLicenses['weapon_lmg'] then
table.insert(elements, {label = ('%s - <span style="color: green;">%s</span>'):format(_U('license_aircraft'), _U('shop_menu_item', ESX.Math.GroupDigits(Config.Prices.LMG))), value = 'buy_license_lmg'})
end
if not ownedLicenses['weapon_sniper'] then
table.insert(elements, {label = ('%s - <span style="color: green;">%s</span>'):format(_U('license_aircraft'), _U('shop_menu_item', ESX.Math.GroupDigits(Config.Prices.Sniper))), value = 'buy_license_sniper'})
end
end
if Config.DMVSchool then
if Config.SellDMV then
if not ownedLicenses['dmv'] then
table.insert(elements, {label = ('%s - <span style="color: green;">%s</span>'):format(_U('license_aircraft'), _U('shop_menu_item', ESX.Math.GroupDigits(Config.Prices.DriversP))), value = 'buy_license_driversp'})
end
end
if not ownedLicenses['drive_truck'] then
table.insert(elements, {label = ('%s - <span style="color: green;">%s</span>'):format(_U('license_aircraft'), _U('shop_menu_item', ESX.Math.GroupDigits(Config.Prices.Commercial))), value = 'buy_license_commercial'})
end
if not ownedLicenses['drive'] then
table.insert(elements, {label = ('%s - <span style="color: green;">%s</span>'):format(_U('license_aircraft'), _U('shop_menu_item', ESX.Math.GroupDigits(Config.Prices.Drivers))), value = 'buy_license_drivers'})
end
if not ownedLicenses['drive_bike'] then
table.insert(elements, {label = ('%s - <span style="color: green;">%s</span>'):format(_U('license_aircraft'), _U('shop_menu_item', ESX.Math.GroupDigits(Config.Prices.Motorcycle))), value = 'buy_license_motorcycle'})
end
end
if Config.Drugs then
if not ownedLicenses['weed_processing'] then
table.insert(elements, {label = ('%s - <span style="color: green;">%s</span>'):format(_U('license_aircraft'), _U('shop_menu_item', ESX.Math.GroupDigits(Config.Prices.Weed))), value = 'buy_license_weed'})
end
end
if Config.WeaponShop then
if not ownedLicenses['weapon'] then
table.insert(elements, {label = ('%s - <span style="color: green;">%s</span>'):format(_U('license_aircraft'), _U('shop_menu_item', ESX.Math.GroupDigits(Config.Prices.Weapon))), value = 'buy_license_weapon'})
end
end
from esx_licenseshop.
Fixed in ce37da7 thanks for noticing it @ptitxandre
from esx_licenseshop.
Related Issues (10)
- DMV license doesnt load HOT 2
- Empty menu - buy license HOT 5
- Nothing Showing Up HOT 2
- No menu showing up when walking into license shop zone. HOT 1
- Help
- esx_license/server/main.lia:93: attemnt to index a nil value (field '?') HOT 6
- nil value global 'ESX' HOT 1
- Script Error HOT 22
- shop glitched HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esx_licenseshop.