qb-phone iOS Theme made by TORCHIZM for discord.gg/vlast
Requirements
- If not exists, add this codes to qb-core/server/player.lua > CheckPlayerData function
PlayerData.metadata["phonedata"] = PlayerData.metadata["phonedata"] ~= nil and PlayerData.metadata["phonedata"] or {
SerialNumber = QBCore.Player.CreateSerialNumber(),
InstalledApps = {},
}
PlayerData.metadata["phone"] = PlayerData.metadata["phone"] ~= nil and PlayerData.metadata["phone"] or {}
- If not exists, Add this code as a new function to qb-core/server/player.lua
QBCore.Player.CreateSerialNumber = function()
local UniqueFound = false
local SerialNumber = nil
while not UniqueFound do
SerialNumber = math.random(11111111, 99999999)
QBCore.Functions.ExecuteSql(true, "SELECT COUNT(*) as count FROM `players` WHERE `metadata` LIKE '%"..SerialNumber.."%'", function(result)
if result[1].count == 0 then
UniqueFound = true
end
end)
end
return SerialNumber
end
- Photos App (Currently working on)
- Yellowpages multi-image support
- Rework Twitter
- Remake Bank
- Remake Wanteds
- Improve Zoom
- Fix App Alerts
Dependencies
Dependencies
Dependencies
Dependencies
Number picker is edited and fixed version of jquery.ios.picker.3d.js by me