HexscriptsClassicSyncIntegrations
WS Killdot
Here you will get the full Integration guide to setup our Sync with WS FFA V1 / V2.
WS KillDot
To make our Sync compatible with WS KillDot, follow these steps:
hex_sync version
Make sure you are using hex_sync version 1.1.7 or higher.
Open the ws_killdot config
Open the config.lua file in ws_killdot
Copy code
Copy the Compatible code and paste it into bottom config.
if IsDuplicityVersion() then
local _AddEventHandler = AddEventHandler
AddEventHandler = function(eventName, args)
if GetResourceState('hex_sync') ~= 'started' then
_AddEventHandler(eventName, args)
return
end
if eventName == 'weaponDamageEvent' then return end
_AddEventHandler(eventName, args)
end
if GetResourceState('hex_sync') == 'started' then
local function isPlayerDead(playerId)
local health = GetEntityHealth(GetPlayerPed(playerId))
local isDead = Player(playerId).state['isDead']
if isDead then return true end
if health < 100 then return true end
return false
end
RegisterNetEvent('esx:onPlayerDeath', function(data)
local playerId = source
if not data.killedByPlayer then return end
if not isPlayerDead(playerId) then return end
local killerId = data.killerServerId
if not CanShowDot(killerId) then return end
TriggerClientEvent('ws_dotpicker:toggleFX', killerId)
end)
end
endRestart Server
Restart your server to apply the changes.