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 #155 from Renewed-Scripts/main
Browse files Browse the repository at this point in the history
Merge v1 fixes into v2
  • Loading branch information
FjamZoo authored Dec 5, 2023
2 parents 330b7ae + b93c6a3 commit 937009b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ RegisterCommand('phone', function()
end, false) 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
Expand Down
1 change: 1 addition & 0 deletions server/documents.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,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)
Expand Down
4 changes: 2 additions & 2 deletions server/employment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ RegisterNetEvent('qb-phone:server:fireUser', function(Job, sCID)

local grade = tostring(CachedJobs[Job].employees[srcCID].grade)
if not QBCore.Shared.Jobs[Job].grades[grade].isboss then return end

if CachedJobs[Job].employees[srcCID].grade < CachedJobs[Job].employees[CID].grade then return end
-- for some reason the line next doesnt like being compared to each other even tho they are both numbers so i had to use tonumber
if tonumber(CachedJobs[Job].employees[srcCID].grade) < tonumber(CachedJobs[Job].employees[CID].grade) then return end


CachedJobs[Job].employees[CID] = nil
Expand Down

0 comments on commit 937009b

Please sign in to comment.