π°exports/handlers
In api we have some exports & handlers here you will find list
exports['here_put_api_script_name']:ban(source, "here_put_reason")
-- It putting someone to API banlist and it dropping him from server.
Simple ban with api. EXPORT IS SERVER-SIDED example.
exports['minerixon']:ban(source, "Exploiting event without job.")
minerixon is api folder, source is source from event and next to source is reason.exports['here_put_api_script_name']:getAllPlayerIdentifiers(source, boolean)
- Use it if u want to get someones identifiers with API.
boolean is true or false
If u set it to true API will return 1 table with every identifier even with tokens
if u set false then api will return you named table you can get from it: steam, license, ip, discord, liveid, xbl, name example.
true:
local identifiers = exports['minerixon']:getAllPlayerIdentifiers(source, true)
for k,v in pairs(identifiers) do
print(v) -- v return every identifier!
endLast updated