cfxregame
Gold Elite
and start PHONE.
Replace qb-core/server/player.lua with the lua file I threw.
From qb-core/server/functions.lua
Find QBCore.Functions.GetPlayerByPhone = function(number) and paste this code;
Code:
Footnote 1;
tgiann-base There is an export called exports["gcphone"]: phoneIsOpen() in some scripts like qb-inventoryv2. Change them to exports["qb-phone"]: phoneIsOpen() .
Footnote 2;
When you press m or something while using the phone, the characters fall to the ground. To the loop that pulls that key for him.
if exports["qb-phone"]: phoneIsOpen() == false then
--code
--code
--code
end
if you add this it won't do it when the phone is on
For casualty notification to EMS and Police, go to client_menu.lua from tgiann-menuv3.
elseif data == "emsbildirim" then 'i bulup
Code:
Replace with this.
Anyone who can integrate it into F3 should do it.
Replace qb-core/server/player.lua with the lua file I threw.
Hidden link for visitors, to see
Log in or register now.
From qb-core/server/functions.lua
Find QBCore.Functions.GetPlayerByPhone = function(number) and paste this code;
Code:
Code:
QBCore.Functions.GetPlayerByPhone = function(number)
for src, player in pairs(QBCore.Players) do
local cid = citizenid
if QBCore.Players[src].PlayerData.charinfo.phone == number then
return QBCore.Players[src]
end
end
return nil
end
tgiann-base There is an export called exports["gcphone"]: phoneIsOpen() in some scripts like qb-inventoryv2. Change them to exports["qb-phone"]: phoneIsOpen() .
: delete space between p and
Footnote 2;
When you press m or something while using the phone, the characters fall to the ground. To the loop that pulls that key for him.
Kod:: delete space between p and
if exports["qb-phone"]: phoneIsOpen() == false then
--code
--code
--code
end
if you add this it won't do it when the phone is on
For casualty notification to EMS and Police, go to client_menu.lua from tgiann-menuv3.
elseif data == "emsbildirim" then 'i bulup
Code:
Code:
elseif data == "emsnotification" then
if GetGameTimer() > emsNotificationCd then
QBCore.Functions.TriggerCallback('qb-phone:server:HasPhone', function(HasPhone)
if HasPhone then
QBCore.Functions.TriggerCallback('tgiann-base:ems-number', function(ActiveEMS)
TriggerEvent("Tgiann-PoliceNotification:NotificationSend", "Injured Citizen", false, false, false, "ambulance")
QBCore.Functions.Notify('Active Units Notified! Active EMS Number: '.. AktifEMS)
emsNotificationCd = GetGameTimer() + 300000
end)
else
QBCore.Functions.Notify('You Can't Send GPS Location Because You Don't Have Your Phone')
end
end)
else
QBCore.Functions.Notify('You Can Notify Every 5 Minutes')
end
elseif data == "policenotification" then
if GetGameTimer() > pdNotificationCd then
QBCore.Functions.TriggerCallback('qb-phone:server:HasPhone', function(HasPhone)
if HasPhone then
TriggerEvent("Tgiann-PoliceNotification:Send Notification", "Injured Citizen", false)
pdNotificationCd = GetGameTimer() + 300000
else
QBCore.Functions.Notify('You Can't Send GPS Location Because You Don't Have Your Phone')
end
end)
else
QBCore.Functions.Notify('You Can Notify Every 5 Minutes')
end
Replace with this.
Anyone who can integrate it into F3 should do it.
With this event, it gives the phone number and iban to the closest person.TriggerEvent("qb-phone:client:GiveContactDetails")