Added Database

This commit is contained in:
Nass committed 2025-10-06 10:55:47 -07:00
1 parent 477f3d51f0
commit 5c0267981d
9 files changed
+107 -51

No files matched your search

+19
View File
@@ -1,5 +1,23 @@
--[[
https://github.com/alp1x/um-ped-scale
Main scaling function based off of this script
███╗ ██╗ █████╗ ███████╗███████╗ ██████╗ ███████╗██████╗ ███████╗ ██████╗ █████╗ ██╗ ███████╗██████╗
████╗ ██║██╔══██╗██╔════╝██╔════╝ ██╔══██╗██╔════╝██╔══██╗██╔════╝██╔════╝██╔══██╗██║ ██╔════╝██╔══██╗
██╔██╗ ██║███████║███████╗███████╗ ██████╔╝█████╗ ██║ ██║███████╗██║ ███████║██║ █████╗ ██████╔╝
██║╚██╗██║██╔══██║╚════██║╚════██║ ██╔═══╝ ██╔══╝ ██║ ██║╚════██║██║ ██╔══██║██║ ██╔══╝ ██╔══██╗
██║ ╚████║██║ ██║███████║███████║███████╗██║ ███████╗██████╔╝███████║╚██████╗██║ ██║███████╗███████╗██║ ██║
╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝╚═╝ ╚══════╝╚═════╝ ╚══════╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═╝
https://discord.gg/nass
Please support the development of this script by joining our discord server.
]]
RegisterNetEvent('nass_pedscaler:syncScale', function(scale)
local src = source
playerScaling[getPlayerIdentifier(src)] = scale
TriggerClientEvent('nass_pedscaler:syncScale', -1, src, scale)
end)
@@ -16,6 +34,7 @@ if Config.commands.resetScale.enabled then
RegisterCommand(Config.commands.resetScale.command, function(source, args)
local id = tonumber(args[1]) or source
if hasPermission(source, id == source and "resetSelf" or "resetOther") then
playerScaling[getPlayerIdentifier(id)] = nil
TriggerClientEvent('nass_pedscaler:syncScale', -1, id, nil)
end
end, false)