AGN Troubleshooter
FiveM · GTA V support

← Error library

high confirmed QBCore · AGN-KB-QB-0003

attempt to call a nil value — a function or event handler does not exist

The message

attempt to call a nil value

An AGN script tried to use something that is not there. It is ours to fix.

What you see

  • An action produces a console error and nothing happens
  • Only one feature is broken while the rest of the resource works

What usually causes it

  • A renamed or removed function after a framework update
  • A typo in the function name
  • A shared file not listed in fxmanifest.lua, so the function was never defined
  • Calling a server function from the client or vice versa

Worth checking first

  • Note the named function from the error
  • Check fxmanifest.lua actually lists the file defining it
  • Check client versus server context

Safe steps, one at a time

  • Player-side: report the exact text
  • Staff: check the manifest file list first — a missing entry is the most common cause and the easiest to miss

These are suggestions, not instructions. Do only what you are comfortable with, back up anything important first, and stop if a step does not match what is on your screen. Advice, risk and responsibility.

When to stop and ask staff

Always staff.

Looks like

AGN resource / QBCore

What staff will need

  • Exact error text
  • Resource name
  • What action triggers it

Last reviewed Fri Sep 18.