Hello everyone, VAG Users, the phone script called gcphone has been rebuilt with metadata and everything is registered on the phone, regardless of the settings on the phone.
The bank systems of the phone come through the person who bought the guardian.
People who want can add a password to the system, if there is a request, I will add it.
done via qb to esx
qb-inventory on server.lua
Itemshop part is addinventoryitem part
you can make it work correctly when the phone is purchased by replacing it with (I didn't try it, I just thought of it, I couldn't find what I did) If you're lazy, I added the phonever command for you to test the phone
should use the phone once after taking the phone on the person
There is no need for an extra script for ambulance police messages.
The bank systems of the phone come through the person who bought the guardian.
People who want can add a password to the system, if there is a request, I will add it.
done via qb to esx
qb-inventory on server.lua
Itemshop part is addinventoryitem part
Code:
if itemData.name ~= 'phone' then Player.addInventoryItem(itemData.name, fromcount, toSlot, itemData.info)
else
local src = source
local xPlayer = ESX.GetPlayerFromId(src)
num = math.random(100, 900)
num2 = math.random(100, 900)
xphoneid = tostring(num) .. "0" .. tostring(num2)
xPlayer.addInventoryItem(
"phone",
fromcount,
toSlot,
{
phoneid = xphoneid
}
)
exports.ghmattimysql:execute(
"INSERT INTO phoneinformations (phoneid, owner) VALUES (@phoneid, @owner)",
{
["@phoneid"] = xphoneid,
["@owner"] = xPlayer.identifier
}
)
end
you can make it work correctly when the phone is purchased by replacing it with (I didn't try it, I just thought of it, I couldn't find what I did) If you're lazy, I added the phonever command for you to test the phone
should use the phone once after taking the phone on the person
There is no need for an extra script for ambulance police messages.
Hidden link for visitors, to see
Log in or register now.
Last edited: