HexscriptsClassicSyncIntegrations
WS FFA
Here you will get the full Integration guide to setup our Sync with WS FFA V1 / V2.
WS FFA V1 / V2
To make our Sync compatible with WS FFA v1 & v2, follow these steps:
hex_sync version
Make sure you are using hex_sync version 1.1.7 or higher.
Open the ws_ffa config
Open the config/cl_config.lua file in ws_ffa/ws_ffa-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_ffa:addKill' or eventName == 'ws_ffa:selfKill' then return end
end
return _TriggerServerEvent(...)
end
local function isInFFA()
if GetResourceState('ws_ffa') == 'started' then
if exports['ws_ffa']:isInZone() then
return true
end
end
if GetResourceState('ws_ffa-v2') == 'started' then
if exports['ws_ffa-v2']:isInZone() then
return true
end
end
return false
end
RegisterNetEvent('hex_sync:onPlayerDeath', function(data)
if isInFFA() then
if data.killedByPlayer then
_TriggerServerEvent('ws_ffa:addKill', data.killerServerId)
return
end
_TriggerServerEvent('ws_ffa:selfKill')
end
end)
endRestart Server
Restart your server to apply the changes.