🧠 Installation
🪜 First steps
- Make sure you have YSeries
🔴 Dependencies
- yseries/yphone or yflip-phone. Version ≥ 0.99.82
- ox_lib Follow their installation instructions(latest).
- oxmysql Follow their installation instructions(latest).
🖼️ Frameworks
Our script is compatible with QBCore, QBox, ESX, and Standalone(custom framework or no framework).
You don't need to do anything else if you are using QBCore, QBox, or ESX. The script will auto-detect the correct framework.
⚠️ Standalone
🎯 Resource positioning
lua-- First, we start the framework, never below ensure es_extended, qb-core, qbx_core (or your framework name) -- These resources must be started before the phone ensure your_banking ensure your_inventory ensure your_housing ensure your_garages -- the other scripts don't matter - they can be started before or after no difference -- Boomer phone first ensure yboomer-phone ensure yboomer-phone-props -- Main phone second ensure yseries -- yphone or yflip-phone ensure yseries-props
💳 Phone Items
lua["yboomer_black"] = { label = "Boomer Phone", weight = 100, stack = false, consume = 0, client = { export = "yboomer-phone.UsePhoneItem", remove = function() TriggerEvent("yboomer:client:phone-item-removed") end, add = function() TriggerEvent("yboomer:client:phone-item-added") end } },
yboomer_black = { name = 'yboomer_black', label = 'Boomer Phone', weight = 700, type = 'item', image = 'yboomer_black.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Modern but nostalgic' },