Editable files

Client Editable.lua

if Config.commands.indicator.active then
    RegisterCommand(Config.commands.indicator.command, function()
        TriggerEvent("tgiann-damage-indicator:onOff")
    end)
end

if Config.commands.icon.active then
    RegisterCommand(Config.commands.icon.command, function()
        TriggerEvent("tgiann-damage-indicator:iconOnOff")
    end)
end

if Config.spawnPedCommand then
    RegisterCommand("spawnped", function()
        while not HasModelLoaded(`a_m_m_beach_01`) do
            RequestModel(`a_m_m_beach_01`)
            Wait(100)
        end
        local ped = CreatePed(4, `a_m_m_beach_01`, GetEntityCoords(PlayerPedId()) - vector3(0.0, 0.0, 1.0), GetEntityHeading(PlayerPedId()), false, false)
        FreezeEntityPosition(ped, true)
        SetBlockingOfNonTemporaryEvents(ped, true)
        SetPedArmour(ped, 100)
        SetPedSuffersCriticalHits(ped, false)
    end)
end

function playSound(name)
    if Config.hitSound.useTgiannSound then
        local data = {
            entity = PlayerPedId(),
            soundFile = name,
            soundMaxVolume = 0.1,
        }
        TriggerEvent("tgiann-sounds:play-sound", data)
    else
        TriggerEvent('InteractSound_CL:PlayOnOne', name, 0.03)
    end
end

Last updated