π§ Installation
πͺ First steps
- Install the latest stable version of MariaDB.
- Add all dependencies listed below and follow their installation instructions.
- Watch the quick installation walkthrough to set up the phone.(Skip the part with SQL)
- On the first launch of the phone, the SQL will insert the needed tables in your database.
π΄ Dependencies
- ox_lib Follow their installation instructions(latest).
- oxmysql Follow their installation instructions. For 3.0 beta, use the audited 2.12.0 or 2.14.2 build; see the driver requirements.
πΌοΈ Frameworks
Our script is compatible with QBCore, QBox, ESX, and Standalone(custom framework or no framework).
If you are using QBCore, QBox, or ESX, you don't need to do anything else. The script will auto-detect the correct framework.
β οΈ Standalone
π― Resource positioning
Code
# First, we start the framework, never below
ensure es_extended # Replace with qb-core, qbx_core, or your framework resource 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
# The phone system
ensure [phone] # Put yseries or yphone or yflip-phone and props here!π³ Phone Items
lua
["phone"] = {
label = "Phone",
weight = 100,
stack = false,
consume = 0,
client = {
export = "yseries.UsePhoneItem",
remove = function()
TriggerEvent("yseries:phone-item-removed")
end,
add = function()
TriggerEvent("yseries:phone-item-added")
end
}
},
["yphone_natural"] = {
label = "YPhone Natural",
weight = 100,
stack = false,
consume = 0,
client = {
export = "yseries.UsePhoneItem",
remove = function()
TriggerEvent("yseries:phone-item-removed")
end,
add = function()
TriggerEvent("yseries:phone-item-added")
end
}
},
["yphone_black"] = {
label = "YPhone Black",
weight = 100,
stack = false,
consume = 0,
client = {
export = "yseries.UsePhoneItem",
remove = function()
TriggerEvent("yseries:phone-item-removed")
end,
add = function()
TriggerEvent("yseries:phone-item-added")
end
}
},
["yphone_white"] = {
label = "YPhone White",
weight = 100,
stack = false,
consume = 0,
client = {
export = "yseries.UsePhoneItem",
remove = function()
TriggerEvent("yseries:phone-item-removed")
end,
add = function()
TriggerEvent("yseries:phone-item-added")
end
}
},
["yphone_blue"] = {
label = "Phone",
weight = 100,
stack = false,
consume = 0,
client = {
export = "yseries.UsePhoneItem",
remove = function()
TriggerEvent("yseries:phone-item-removed")
end,
add = function()
TriggerEvent("yseries:phone-item-added")
end
}
},
["yflip_mint"] = {
label = "YFlip Mint",
weight = 100,
stack = false,
consume = 0,
client = {
export = "yseries.UsePhoneItem",
remove = function()
TriggerEvent("yseries:phone-item-removed")
end,
add = function()
TriggerEvent("yseries:phone-item-added")
end
}
},
["yflip_gold"] = {
label = "YFlip Gold",
weight = 100,
stack = false,
consume = 0,
client = {
export = "yseries.UsePhoneItem",
remove = function()
TriggerEvent("yseries:phone-item-removed")
end,
add = function()
TriggerEvent("yseries:phone-item-added")
end
}
},
["yflip_graphite"] = {
label = "YFlip Graphite",
weight = 100,
stack = false,
consume = 0,
client = {
export = "yseries.UsePhoneItem",
remove = function()
TriggerEvent("yseries:phone-item-removed")
end,
add = function()
TriggerEvent("yseries:phone-item-added")
end
}
},
["yflip_lavender"] = {
label = "YFlip Lavender",
weight = 100,
stack = false,
consume = 0,
client = {
export = "yseries.UsePhoneItem",
remove = function()
TriggerEvent("yseries:phone-item-removed")
end,
add = function()
TriggerEvent("yseries:phone-item-added")
end
}
},
["y26_dark"] = {
label = "Y26 Dark",
weight = 100,
stack = false,
consume = 0,
client = {
export = "yseries.UsePhoneItem",
remove = function()
TriggerEvent("yseries:phone-item-removed")
end,
add = function()
TriggerEvent("yseries:phone-item-added")
end
}
},
["y26_silver"] = {
label = "Y26 Silver",
weight = 100,
stack = false,
consume = 0,
client = {
export = "yseries.UsePhoneItem",
remove = function()
TriggerEvent("yseries:phone-item-removed")
end,
add = function()
TriggerEvent("yseries:phone-item-added")
end
}
},
["y26_violet"] = {
label = "Y26 Violet",
weight = 100,
stack = false,
consume = 0,
client = {
export = "yseries.UsePhoneItem",
remove = function()
TriggerEvent("yseries:phone-item-removed")
end,
add = function()
TriggerEvent("yseries:phone-item-added")
end
}
},
["y26_gold"] = {
label = "Y26 Gold",
weight = 100,
stack = false,
consume = 0,
client = {
export = "yseries.UsePhoneItem",
remove = function()
TriggerEvent("yseries:phone-item-removed")
end,
add = function()
TriggerEvent("yseries:phone-item-added")
end
}
},
["yfold_black"] = {
label = "YFold Black",
weight = 100,
stack = false,
consume = 0,
client = {
export = "yseries.UsePhoneItem",
remove = function()
TriggerEvent("yseries:phone-item-removed")
end,
add = function()
TriggerEvent("yseries:phone-item-added")
end
}
},
["ytrifold_black"] = {
label = "YTriFold Black",
weight = 100,
stack = false,
consume = 0,
client = {
export = "yseries.UsePhoneItem",
remove = function()
TriggerEvent("yseries:phone-item-removed")
end,
add = function()
TriggerEvent("yseries:phone-item-added")
end
}
},
["yduo_graphite"] = {
label = "YDuo - Graphite",
weight = 100,
stack = false,
consume = 0,
client = {
export = "yseries.UsePhoneItem",
remove = function()
TriggerEvent("yseries:phone-item-removed")
end,
add = function()
TriggerEvent("yseries:phone-item-added")
end
}
},
["yphone_fold_black"] = {
label = "YPhone Fold Black",
weight = 100,
stack = false,
consume = 0,
client = {
export = "yseries.UsePhoneItem",
remove = function()
TriggerEvent("yseries:phone-item-removed")
end,
add = function()
TriggerEvent("yseries:phone-item-added")
end
}
},
lua
phone = { name = 'phone', label = 'Phone', weight = 700, type = 'item', image = 'yflip_graphite.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'yphone or maybe yflip?' },
yphone = { name = 'yphone', label = 'Phone', weight = 700, type = 'item', image = 'yphone_black.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'YPhone? Cuz Y not.' },
yflipphone = { name = 'yflipphone', label = 'Phone', weight = 700, type = 'item', image = 'yflip_graphite.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Flip it.. won\'t break' },
yphone_natural = { name = 'yphone_natural', label = 'YPhone Natural', weight = 700, type = 'item', image = 'yphone_natural.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'YPhone? Cuz Y not.' },
yphone_black = { name = 'yphone_black', label = 'YPhone Black', weight = 700, type = 'item', image = 'yphone_black.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'YPhone? Cuz Y not.' },
yphone_white = { name = 'yphone_white', label = 'YPhone White', weight = 700, type = 'item', image = 'yphone_white.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'YPhone? Cuz Y not.' },
yphone_blue = { name = 'yphone_blue', label = 'YPhone Blue', weight = 700, type = 'item', image = 'yphone_blue.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'YPhone? Cuz Y not.' },
yflip_mint = { name = 'yflip_mint', label = 'YFlip Mint', weight = 700, type = 'item', image = 'yflip_mint.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Flip it.. won\'t break' },
yflip_gold = { name = 'yflip_gold', label = 'YFlip Gold', weight = 700, type = 'item', image = 'yflip_gold.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Flip it.. won\'t break' },
yflip_graphite = { name = 'yflip_graphite', label = 'YFlip Graphite', weight = 700, type = 'item', image = 'yflip_graphite.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Flip it.. won\'t break' },
yflip_lavender = { name = 'yflip_lavender', label = 'YFlip Lavender', weight = 700, type = 'item', image = 'yflip_lavender.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Flip it.. won\'t break' },
ytrifold_black = { name = 'ytrifold_black', label = 'YTriFold Black', weight = 700, type = 'item', image = 'ytrifold_black.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Unfold the full experience' },
yduo_graphite = { name = 'yduo_graphite', label = 'YDuo - Graphite', weight = 700, type = 'item', image = 'yduo_graphite.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Unfold the full experience' },
New phone models
For YDuo, YPhone Dual, YTriFold and Y26 setup, see Devices and widgets. They need the matching updated props resource.