💻Installation

This guide provides instructions for installing the Rep-Weed item pack on your QBCore-based FiveM server using either the LJ/QB or Ox inventory system.

Installation Steps

Token verification

Go to: server\citizen\scripting\lua\scheduler.lua

Find:

local eventHandlers = {}

IMPORTANT: Replace it so it looks like this

function verifyToken(playerSrc, token)
    local p = promise.new()
    TriggerEvent('hotp:verifyToken', playerSrc, token, function(result)
        p:resolve(result)
    end)
    return Citizen.Await(p)
end

local eventHandlers = {}
local deserializingNetEvent = false
local table_remove = table.remove
local whitelistEvents = {
    ['fivem-appearance:server:GetPlayerAces'] = true,
    ['hardcap:playerActivated'] = true,
    ['txsv:checkAdminStatus'] = true,
    ['txaLogger:DeathNotice'] = true,
    ['txAdmin:menu:playerModeChanged'] = true,
    ['txAdmin:menu:tpToWaypoint'] = true,
    ['txAdmin:menu:tpToCoords'] = true,
    ['baseevents:onPlayerDied'] = true,
}
server\citizen\scripting\lua\scheduler.lua

Modify Citizen.SetEventRoutine function

Go to: server\citizen\scripting\lua\scheduler.lua

  1. Look for

  1. Replace the WHOLE FUNCTION with:

Replacing the whole function

Adding HOTP to your scripts

  1. Locate the fxmanifest.lua file of your FiveM resource.

  2. Inside the file, find the client_scripts section.

  3. Add '@hotp/build/client/token.lua' to the client_scripts section. Your updated code should look like this:

This addition ensures that the essential token.lua file is included in the client-side scripts. This file handles tasks related to tokens, such as authentication and other functionalities

  1. Ensure that the script requires Lua version 54 by adding the following line:

This line notifies FiveM that the resource relies on compatibility with Lua version 54.

  1. Save the fxmanifest.lua file after incorporating these changes.

By following these steps, HOTP will be successfully integrated into your script. If you encounter any difficulties or have further inquiries, don't hesitate to seek assistance.

Example

Last updated

Was this helpful?