-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfunctions.lua
More file actions
27 lines (24 loc) · 1.05 KB
/
Copy pathfunctions.lua
File metadata and controls
27 lines (24 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function GetPlayerIdentifiersStripped(src, permission)
local identifiers = {}
for i = 0, GetNumPlayerIdentifiers(src) - 1 do
local id = GetPlayerIdentifier(src, i)
if string.find(id, "steam:") then
identifiers["steam"] = id:gsub("steam:", "")
elseif string.find(id, "ip:") and permission == "Admin" then
identifiers["ip"] = id:gsub("ip:", "")
elseif string.find(id, "discord:") then
identifiers["discord"] = id:gsub("discord:", "")
elseif string.find(id, "license:") then
identifiers["license"] = id:gsub("license:", "")
elseif string.find(id, "license2:") then
identifiers["license2"] = id:gsub("license2:", "")
elseif string.find(id, "xbl:") then
identifiers["xbl"] = id:gsub("xbl:", "")
elseif string.find(id, "live:") then
identifiers["live"] = id:gsub("live:", "")
elseif string.find(id, "fivem:") then
identifiers["fivem"] = id:gsub("fivem:", "")
end
end
return identifiers
end