From 7ac85689fa41870d72ef9ae460610f400d6dd0f5 Mon Sep 17 00:00:00 2001 From: lowliferp24 Date: Sun, 1 Dec 2024 22:03:54 +0000 Subject: [PATCH] Changed playerJobName local for QBCore --- UPCODE-DEATHSCREEN/client/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UPCODE-DEATHSCREEN/client/main.lua b/UPCODE-DEATHSCREEN/client/main.lua index 27d2504..660cc6d 100644 --- a/UPCODE-DEATHSCREEN/client/main.lua +++ b/UPCODE-DEATHSCREEN/client/main.lua @@ -38,7 +38,7 @@ Citizen.CreateThread(function() if Configuration.Framework == 'esx' then playerJobName = ESX.PlayerData.job.name else - playerJobName = PlayerData.job.name + playerJobName = QBCore.PlayerData.job end if playerJobName == "ambulance" then @@ -244,4 +244,4 @@ DrawText3Ds = function (x, y, z, text) SetDrawOrigin(x,y,z, 0) DrawText(0.0, 0.0) ClearDrawOrigin() -end \ No newline at end of file +end