Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #150 from zeiglermensch/fix-phone-documents
Browse files Browse the repository at this point in the history
Fix: Phone Documents
FjamZoo authored Nov 28, 2023
2 parents cb7713f + 02e4264 commit fe851b0
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/main.lua
Original file line number Diff line number Diff line change
@@ -409,7 +409,7 @@ RegisterCommand('phone', function()
end) RegisterKeyMapping('phone', 'Open Phone', 'keyboard', 'M')

RegisterCommand("+answer", function()
if (PhoneData.CallData.CallType == "incoming" or PhoneData.CallData.CallType == "outgoing" and not PhoneData.CallData.CallType == "ongoing") then
if (PhoneData.CallData.CallType == "incoming" or PhoneData.CallData.CallType == "outgoing") and PhoneData.CallData.CallType ~= "ongoing" then
if not PlayerData.metadata['ishandcuffed'] and not PlayerData.metadata['inlaststand'] and not PlayerData.metadata['isdead'] and not IsPauseMenuActive() and hasPhone() then
AnswerCall()
else
1 change: 1 addition & 0 deletions server/documents.lua
Original file line number Diff line number Diff line change
@@ -129,6 +129,7 @@ RegisterNetEvent('qb-phone:server:documents_Save_Note_As', function(data, Receiv
end
end

Wait(250)
local Notes = exports.oxmysql:executeSync('SELECT * FROM phone_note WHERE citizenid = ?', {CID})
Wait(100)
TriggerClientEvent('qb-phone:RefReshNotes_Free_Documents', src, Notes)

0 comments on commit fe851b0

Please sign in to comment.