Skip to content

Commit

Permalink
fix(framework/ox): set groups on playerLoaded
Browse files Browse the repository at this point in the history
No longer a netevent.
  • Loading branch information
thelindat committed Nov 5, 2022
1 parent 3bbcc36 commit a3d7ff0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/framework/ox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ end)

local playerGroups = success and result or {}

RegisterNetEvent('ox:playerLoaded', function(data)
if source == '' then return end
AddEventHandler('ox:playerLoaded', function(data)
playerGroups = data.groups
end)

Expand Down

0 comments on commit a3d7ff0

Please sign in to comment.