Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Phone Almez Phone v3 Integrated into EDRP Package

cfxregame

Gold Elite
Joined
Nov 3, 2021
Messages
319
Reaction score
166,491
Points
361
Location
Newyork
Website
cfx.re
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:
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
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() .
: 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.

: delete space between p and
Kod:
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.
TriggerEvent("qb-phone:client:GiveContactDetails")
With this event, it gives the phone number and iban to the closest person.
 
Top