Installation

1. Insert the .sql file to your database


2. Install dependencys


3. Framework changes

QB-Framework

To make everything work with QB-Core you have to add a function to qb-core. Include it after "function self.Functions.SetPlayerData(key, val)" in Line 257.

qb-core/server/player.lua
function self.Functions.SetPhoneNumber(val)
    self.PlayerData.charinfo.phone = val
    self.Functions.UpdatePlayerData()
end

4. Restart your server


5. Smartphone changes

Create a new folder in phone/apps/emergencyphone and copy the file sv_changenumber.lua into it which can be found in the emergencyphone folder.

Last updated

Was this helpful?