💻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
local eventHandlers = {}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.luaModify Citizen.SetEventRoutine function
Citizen.SetEventRoutine function
Adding HOTP to your scripts
Example
Last updated