Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: TFNRP framework conflict when using without
  • Loading branch information
MrGriefs committed Nov 19, 2021
1 parent b04129a commit e7572b7
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions util.lua
Expand Up @@ -11,19 +11,15 @@ if RegisterFrameworkCommand == nil then
end
end

if exports.framework.IsHudHidden then
if GetConvar('tfnrp_framework_init') == 'true' then
IsHudHidden = exports.framework.IsHudHidden
else
function IsHudHidden()
return false
end
end

if exports.framework.GetLocalClientDuty then
function IsLEO()
return exports.framework:GetLocalClientDuty() > 0
end
else
function IsHudHidden()
return false
end
function IsLEO()
return IsPedInAnyPoliceVehicle(PlayerPedId())
end
Expand Down

0 comments on commit e7572b7

Please sign in to comment.