mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-16 21:46:03 +01:00
feat: notify player function
This commit is contained in:
@@ -5,7 +5,7 @@ local function createCharacterTable(info)
|
||||
source = info.source,
|
||||
identifier = info.identifier,
|
||||
identifiers = playerInfo.identifiers or {},
|
||||
discord = playerInfo.discord or {}
|
||||
discord = playerInfo.discord or {},
|
||||
name = info.name,
|
||||
firstname = info.firstname,
|
||||
lastname = info.lastname,
|
||||
@@ -165,6 +165,13 @@ local function createCharacterTable(info)
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
function self.notify(...)
|
||||
if not self.source then return end
|
||||
TriggerClientEvent("ox_lib:notify", self.source, ...)
|
||||
return true
|
||||
end
|
||||
|
||||
---@param reason string
|
||||
function self.drop(reason)
|
||||
if not self.source then return end
|
||||
|
||||
Reference in New Issue
Block a user