Skip to content

Commit

Permalink
DBify v.2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ov-anisa committed Dec 19, 2022
1 parent 6eed11b commit 5ac7f9b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
2 changes: 1 addition & 1 deletion module/DBify_Library/asset.vcl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
encryptKey: "vStudio - Aviril"
version: "2.2.0"
version: "2.2.1"
authors:
-: "Aviril"
-: "Tron"
Expand Down
20 changes: 11 additions & 9 deletions module/DBify_Library/dep/modules/account.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ local cModule = dbify.createModule({
})

if dbify.settings.syncNativeAccounts then
local serverPlayers = imports.getElementsByType("player")
for i = 1, imports.table.length(serverPlayers), 1 do
local playerAccount = imports.getPlayerAccount(serverPlayers[i])
if playerAccount and not imports.isGuestAccount(playerAccount) then
cModule.create(imports.getAccountName(playerAccount))
imports.assetify.thread:create(function(self)
local serverPlayers = imports.getElementsByType("player")
for i = 1, imports.table.length(serverPlayers), 1 do
local playerAccount = imports.getPlayerAccount(serverPlayers[i])
if playerAccount and not imports.isGuestAccount(playerAccount) then
cModule.create(imports.getAccountName(playerAccount))
end
end
end
imports.addEventHandler("onPlayerLogin", root, function(_, currAccount)
cModule.create(imports.getAccountName(currAccount))
end)
imports.addEventHandler("onPlayerLogin", root, function(_, currAccount)
cModule.create(imports.getAccountName(currAccount))
end)
end):resume()
end
16 changes: 9 additions & 7 deletions module/DBify_Library/dep/modules/serial.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ local cModule = dbify.createModule({
})

if dbify.settings.syncNativeSerials then
local serverPlayers = imports.getElementsByType("player")
for i = 1, imports.table.length(serverPlayers), 1 do
cModule.create(imports.getPlayerSerial(serverPlayers[i]))
end
imports.addEventHandler("onPlayerJoin", root, function()
cModule.create(imports.getPlayerSerial(source))
end)
imports.assetify.thread:create(function(self)
local serverPlayers = imports.getElementsByType("player")
for i = 1, imports.table.length(serverPlayers), 1 do
cModule.create(imports.getPlayerSerial(serverPlayers[i]))
end
imports.addEventHandler("onPlayerJoin", root, function()
cModule.create(imports.getPlayerSerial(source))
end)
end):resume()
end

0 comments on commit 5ac7f9b

Please sign in to comment.