TK Scripts
  • Welcome
  • Common questions
  • Common problems
  • esx_tk_mechanicjob
    • Common questions & problems
  • tk_bosstablet
    • Common questions & problems
  • tk_jail
    • Common questions & problems
    • Exports
      • Client
      • Server
  • tk_laptop
    • Common Problems
    • Config
    • Exports
      • Client
      • Server
  • tk_mdt
    • Fivemanage setup (for images)
    • Common questions & problems
    • Config
    • Exports
      • Client
      • Server
  • tk_dispatch
    • Setup
    • Common Problems
    • Config
    • Exports
      • Client
      • Server
  • tk_housing
    • Setup
    • Common Problems
    • Config
    • Exports
      • Client
      • Server
  • tk_drugs
    • Common Questions & Problems
    • Config
  • tk_zipline
    • Config
  • tk_houserobbery
    • Config
  • tk_evidence
    • Config
    • Exports
      • Client
      • Server
  • tk_policejob
    • Config
    • Exports
      • Client
      • Server
Powered by GitBook
On this page
  • Failed to verify protected resource
  • You lack the required entitlement to use
  • ERROR: Attempt to index a nil value (global ‘lib’)
  • ERROR: Unknown column 'x' in 'field list'
  • Changing currency symbol
  • Addon vehicle name showing as NULL
  • Items not working on qb-core & ox_inventory
  • Other issues, errors or bugs

Common problems

PreviousCommon questionsNextesx_tk_mechanicjob

Last updated 25 days ago

Failed to verify protected resource

Files were possibly corrupted during transfer. Ensure hidden files are copied; the .fxap file in a protected resource must be included. Some FTP programs skip these files.

You lack the required entitlement to use

Try restarting your server and make sure your server license key is correct. If you bought the resource on the wrong account, you can transfer it to another account on keymaster.

ERROR: Attempt to index a nil value (global ‘lib’)

If you use ox_lib, make sure you add shared_script '@ox_lib/init.lua' to fxmanifest.lua. If you don't use ox_lib, set Config.UseOxLib to false.

ERROR: Unknown column 'x' in 'field list'

Make sure you import the sql included with the script to your server's database. If you are unsure how to do this, you can lookup a tutorial on Youtube for example.

Changing currency symbol

Go to locales/en.lua (or the file for your chosen language) and update the symbol there.

If you are using esx_tk_mechanicjob and want to change from euro to USD: Go to html/script.js and change every Intl.NumberFormat('fi-FI', { style: 'currency', currency: 'EUR' }) to: Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }) (other currencies can also be used by changing the 'en-US' and currency: 'USD' )

Addon vehicle name showing as NULL

You need to add names for all your addon vehicles using AddTextEntry. This can be placed in any client-side script. For example:

AddTextEntry('gtr', 'Skyline GTR 17')

Items not working on qb-core & ox_inventory

Go to ox_inventory/modules/bridge/qb/server.lua and change function server.UseItem to this:

function server.UseItem(source, itemName, data)
    local cb = QBCore.Functions.CanUseItem(itemName)
    return cb and (cb.func and cb.func(source, data) or cb(source, data))
end

Other issues, errors or bugs

For other issues, first make sure you have the latest version of the script downloaded from Cfx.re Keymaster. If the issue persists, make sure you read through the README file of the script and check the "Common problems" of that certain script in our documentation (if such page exists). If after all that the script still doesn't work, then open a ticket in our Discord and we will assist you.

https://forum.cfx.re/t/introducing-asset-escrow-for-your-resources/4777151
https://forum.cfx.re/t/introducing-asset-escrow-for-your-resources/4777151
see here