Skip to content

Commit

Permalink
feat(server/player): license events
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Dec 6, 2022
1 parent b554382 commit 0295893
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/player/class.lua
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ function CPlayer:addLicense(name)
issued = issued
}

TriggerEvent('ox:licenseAdded', self.source, name)
TriggerClientEvent('ox:licenseAdded', self.source, name)

return true
end

Expand All @@ -229,6 +232,9 @@ function CPlayer:removeLicense(name)

self.private.licenses[name] = nil

TriggerEvent('ox:licenseRemoved', self.source, name)
TriggerClientEvent('ox:licenseRemoved', self.source, name)

return true
end

Expand Down

0 comments on commit 0295893

Please sign in to comment.