Installation

CFX Forum Post: https://forum.cfx.re/t/esx-qbcore-msk-simcard-change-your-phonenumber/4847008

Run this SQL command in your database

INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
	('simcard', 'Simcard', 1, 0, 1),
	('simcard_wish', 'Simcard', 1, 0, 1)
;
  • 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 = newNumber
        print("[^4Phone^0] Updatet Phonenumber to ^3" .. newNumber .. "^0 for ^5" .. GetPlayerName(src) .. "^0")
    end
end)

Last updated