🔧Installations origen_races

Remember that this resource has verified DMCA protection, and its illegal use or distribution could imply a claim for protection of Title 17 of Chapter 512 (c)(3) of the Digital Millennium Copyright Act.

We utilize the FiveM Tebex Escrow mechanism, launched in the latter part of 2021, for the verification and dissemination of our assets. Hence, any asset acquired via us can be centrally accessed and downloaded via your Keymaster profile using the following link.

Assets function exclusively on servers employing a key associated with the identical Keymaster profile. This approach guarantees the safety of the assets and restricts unauthorized usage, should the files be inadvertently shared. It's an integral component of the FiveM Tebex Escrow mechanism.

Login into Keymaster: https://keymaster.fivem.net/login


Firts Steps. Before start to installing

Prior to initiating the asset installation, verify your Server Artifacts version. It's imperative to operate on one of its recent versions for our assets to function seamlessly. This stipulation is established by FiveM in line with their Asset Escrow Framework.

Experiencing issues with FileZilla? On occasion, file transmission tools can disrupt encrypted files, causing startup issues with the asset. We advocate for the use of WinSCP, available at the given link. There have been documented challenges with FileZilla previously.

To refresh your server artifacts, locate the newest version outlined below for Windows:

Setting Up

  1. Direct yourself to the resources directory on your server; this is your asset installation point.

  2. Construct a dedicated directory for the asset, and transfer the unzipped content you downloaded earlier into this directory.

Activating the Asset

  • It's crucial to ascertain the correct startup of your asset. This could entail incorporating it into your server.cfg or possibly adjusting settings in txAdmin.

  • Post the installation of any of our assets, a server reboot is necessary to confirm appropriate synchronization with the Keymaster framework.


REQUIERED RESOURCES MINIMAL VERSIONDOWNLOAD

qb-core

Minimal 1.2 / Recommended: 1.2.6

STEP 1

## Execute origen_races/races.sql on your sql database

STEP 2

REMPLACE THIS (QB-AMBULANCEJOB/CLIENT/DEAD.LUA)

AddEventHandler('gameEventTriggered', function(event, data)
    if event == "CEventNetworkEntityDamage" then
        local victim, attacker, victimDied, weapon = data[1], data[2], data[4], data[7]
        if not IsEntityAPed(victim) then return end
        if victimDied and NetworkGetPlayerIndexFromPed(victim) == PlayerId() and IsEntityDead(PlayerPedId()) then
            if not InLaststand then
                SetLaststand(true)
            elseif InLaststand and not isDead then
                SetLaststand(false)
                local playerid = NetworkGetPlayerIndexFromPed(victim)
                local playerName = GetPlayerName(playerid) .. " " .. "("..GetPlayerServerId(playerid)..")" or Lang:t('info.self_death')
                local killerId = NetworkGetPlayerIndexFromPed(attacker)
                local killerName = GetPlayerName(killerId) .. " " .. "("..GetPlayerServerId(killerId)..")" or Lang:t('info.self_death')
                local weaponLabel = (QBCore.Shared.Weapons and QBCore.Shared.Weapons[weapon] and QBCore.Shared.Weapons[weapon].label) or 'Unknown'
                local weaponName = (QBCore.Shared.Weapons and QBCore.Shared.Weapons[weapon] and QBCore.Shared.Weapons[weapon].name) or 'Unknown'
                TriggerServerEvent("qb-log:server:CreateLog", "death", Lang:t('logs.death_log_title', {playername = playerName, playerid = GetPlayerServerId(playerid)}), "red", Lang:t('logs.death_log_message', {killername = killerName, playername = playerName, weaponlabel = weaponLabel, weaponname = weaponName}))
                deathTime = Config.DeathTime
                OnDeath()
                DeathTimer()
            end
        end
    end
end)

TO THIS

AddEventHandler('gameEventTriggered', function(event, data)
    if event == "CEventNetworkEntityDamage" then
        local victim, attacker, victimDied, weapon = data[1], data[2], data[4], data[7]
        local IsPlayerInRace
        if not IsEntityAPed(victim) then return end
        
        if GetResourceState("origen_races") == "started" then
            IsPlayerInRace = exports["origen_races"]:IsPlayerInRace()
        else
            IsPlayerInRace = false
        end
        if not (IsPlayerInRace) then
            if victimDied and NetworkGetPlayerIndexFromPed(victim) == PlayerId() and IsEntityDead(PlayerPedId()) then
                if not InLaststand then
                    SetLaststand(true)
                elseif InLaststand and not isDead then
                    SetLaststand(false)
                    local playerid = NetworkGetPlayerIndexFromPed(victim)
                    local playerName = GetPlayerName(playerid) .. " " .. "("..GetPlayerServerId(playerid)..")" or Lang:t('info.self_death')
                    local killerId = NetworkGetPlayerIndexFromPed(attacker)
                    local killerName = GetPlayerName(killerId) .. " " .. "("..GetPlayerServerId(killerId)..")" or Lang:t('info.self_death')
                    local weaponLabel = (QBCore.Shared.Weapons and QBCore.Shared.Weapons[weapon] and QBCore.Shared.Weapons[weapon].label) or 'Unknown'
                    local weaponName = (QBCore.Shared.Weapons and QBCore.Shared.Weapons[weapon] and QBCore.Shared.Weapons[weapon].name) or 'Unknown'
                    TriggerServerEvent("qb-log:server:CreateLog", "death", Lang:t('logs.death_log_title', {playername = playerName, playerid = GetPlayerServerId(playerid)}), "red", Lang:t('logs.death_log_message', {killername = killerName, playername = playerName, weaponlabel = weaponLabel, weaponname = weaponName}))
                    deathTime = Config.DeathTime
                    OnDeath()
                    DeathTimer()
                end
            end
        end
    end
end)

Last updated