HexscriptsClassicSyncIntegrations
WS Gangwar V2
Here you will get the full Integration guide to setup our Sync with WS FFA V1 / V2.
WS Gangwar V2
To make our Sync compatible with WS Gangwar V2, follow these steps:
hex_sync version
Make sure you are using hex_sync version 1.1.7 or higher.
Open the ws_gangwar-v2 config
Open the config/cl_config.lua file in ws_gangwar-v2
Copy code
Copy the Compatible code and paste it into bottom config.
if not IsDuplicityVersion() then
local _TriggerServerEvent = TriggerServerEvent
TriggerServerEvent = function(...)
local eventArgs = { ... }
local eventName = eventArgs[1]
if GetResourceState('hex_sync') == 'started' then
if eventName == 'ws_gangwar:killed' then return end
end
return _TriggerServerEvent(...)
end
RegisterNetEvent('hex_sync:onPlayerDeath', function(data)
if data.killedByPlayer then
_TriggerServerEvent('ws_gangwar:killed', data.killerServerId)
return
end
_TriggerServerEvent('ws_gangwar:killed', 'self')
end)
local _SetWeaponDamageModifier = SetWeaponDamageModifier
local _SetWeaponDamageModifierThisFrame_ = SetWeaponDamageModifierThisFrame
local _SetPedSuffersCriticalHits_ = SetPedSuffersCriticalHits
SetWeaponDamageModifier = function(...)
if GetResourceState('hex_sync') == 'started' then return end
return _SetWeaponDamageModifier(...)
end
SetWeaponDamageModifierThisFrame = function(...)
if GetResourceState('hex_sync') == 'started' then return end
return _SetWeaponDamageModifierThisFrame_(...)
end
SetPedSuffersCriticalHits = function(...)
if GetResourceState('hex_sync') == 'started' then return end
return _SetPedSuffersCriticalHits_(...)
end
endRestart Server
Restart your server to apply the changes.