Scripts/resources/[qb]/[qb_extras]/qb-simcard
2024-12-30 11:15:34 +01:00
..
client Part 10 2024-12-29 21:07:10 +01:00
server Part 10 2024-12-29 21:07:10 +01:00
config.lua Part 10 2024-12-29 21:07:10 +01:00
fxmanifest.lua File-parity 2024-12-30 11:15:34 +01:00
README.md Part 10 2024-12-29 21:07:10 +01:00
simcard.png Part 10 2024-12-29 21:07:10 +01:00

qb-simcard

A simple fivem resource for qbcore that will allow players to change their in-game phone number

Changelogs

Fixed number sending as a integer to string

Dependencies

qb-input - https://github.com/qbcore-framework/qb-input

Installation

Add this to qb-core>server>player.lua (around line 260)

function self.Functions.UpdateNumber(newnumber) self.PlayerData.charinfo.phone = newnumber self.Functions.UpdatePlayerData() end

Add this to qb-core>shared>items.lua

['simcard'] = {['name'] = 'simcard', ['label'] = 'Sim Card', ['weight'] = 1, ['type'] = 'item', ['image'] = 'simcard.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Its a new sim.. That means a new number?'},

Add simcard.png to qb-inventory>html>images

Configuration

Check config.lua

Support

Contact me here for support: https://discord.gg/mEz9MPSXVK