Error pasing script

So I have just converted a script from esx to qbcore and it gives me this error

My code is this:

First of, NO, that is not your code, that is only a small part which doesn’t show the whole thing thus making it harder to find your error.

Still, you seem to be using a QBCore function and it’s saying in the error that it is nil, this means it has not been declared, do you have this piece of code at the start of your file?

QBCore = exports['qb-core']:GetCoreObject()

Give this a read: Shared Exports - QBCore Documentation

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.