Added extra syncing functions
This commit is contained in:
1 parent
937dc8940a
commit
ee59a89cf2
3 files changed
+16
-4
No files matched your search
@@ -1,10 +1,13 @@
|
||||
playerScaling = json.decode(LoadResourceFile(GetCurrentResourceName(), "./playerScaling.json")) or {}
|
||||
|
||||
function onPlayerLoaded(identifier, source)
|
||||
TriggerClientEvent('nass_pedscaler:syncCurrentScaling', source, scaledPlayers)
|
||||
|
||||
local playerscale = playerScaling[identifier]
|
||||
if playerscale and playerscale ~= 1.0 then
|
||||
TriggerClientEvent('nass_pedscaler:syncScale', -1, source, playerscale)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
AddEventHandler('onResourceStart', function(resourceName)
|
||||
|
||||
Reference in new issue
Block a user