Add the items to your qb-core/shared/items.lua f.e. like this:
['simcard'] = {['name'] ='simcard', ['label'] ='Simcard', ['weight'] =1000, ['type'] ='item', ['image'] ='simcard.png', ['unique'] =true, ['useable'] =true, ['shouldClose'] =true, ['combinable'] =nil, ['description'] ='Simcard that will change your phone number'},['simcard_wish'] = {['name'] ='simcard_wish', ['label'] ='Simcard', ['weight'] =1000, ['type'] ='item', ['image'] ='simcard.png', ['unique'] =true, ['useable'] =true, ['shouldClose'] =true, ['combinable'] =nil, ['description'] ='Set the phone number you desire'},
Create a new folder in phone/apps/ and name it changenumber
Create a new file and name it sv_changenumber.lua
Add in /sv_changenumber.lua
RegisterNetEvent('phone:changeNumber')AddEventHandler('phone:changeNumber', function(src,newNumber)if Phones[src] then Phones[src].number = newNumberprint("[^4Phone^0] Updatet Phonenumber to ^3" .. newNumber .."^0 for ^5" ..GetPlayerName(src) .."^0")endend)
Go to /npwd/resources/dist/server/server.js
Then go to line 52764 and add the following Code
exp4("setPhoneNumber", (src, newNumber) => {let player =player_service_default.getPlayer(src);player._phoneNumber = newNumber;console.log(`[msk_simcard]: Phonenumber was set to ${player._phoneNumber}`);});