Skip to content

Commit

Permalink
fix(client/ox): update function names
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Mar 1, 2024
1 parent 7bfc9c0 commit 80ac6c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/framework/ox.lua
Expand Up @@ -6,5 +6,5 @@ local player = Ox.GetPlayer()

---@diagnostic disable-next-line: duplicate-set-field
function utils.hasPlayerGotGroup(filter)
return player.hasGroup(filter)
return player.getGroup(filter)
end
2 changes: 1 addition & 1 deletion client/utils.lua
Expand Up @@ -191,7 +191,7 @@ SetTimeout(0, function()
end)
end

if utils.hasExport('ox_core.GetPlayerData') then
if utils.hasExport('ox_core.GetPlayer') then
require 'client.framework.ox'
elseif utils.hasExport('es_extended.getSharedObject') then
require 'client.framework.esx'
Expand Down

0 comments on commit 80ac6c3

Please sign in to comment.