#qb-management: Boss Menu & Error

1 messages · Page 1 of 1 (latest)

white zealot
#

QBCORE Framework

What i am trying to do:
I want to move the place where you can access the boss menu.
WHAT I DID:
/pzcreate box (create a polyzone)
/pzfinish
copied the vector 3 for the polyzone and put it in my qb-management file for police job
cannot open it 🙁

I did it for a gang first, the exact same way- works perfectly
but for ambulance and police it just doesnt work?

ERROR I AM GETTING:
SCRIPT ERROR: @qb-management/client/cl_boss.lua:179: attempt to call a nil value (global 'TriggerClientEvent')^7

rare hinge
#

The file referenced in your error does not include a TriggerClientEvent on line 179 on the latest version on GitHub.

TriggerEvent instead would fix it.

#

When asking for support for an error that references code, providing that code so we don't have to guess what yours is helps a lot.

white zealot
#

Thank you !

tranquil anchor
#

also to build off of the beautiful madcap

you cant use TriggerClientEvent on a client sided file

AND

you cant use TriggerServerEvent on a server sided file

you need to do TriggerEvent to go to the same file type

and when sending data to the other side, you do the Type function

like
server to client

TriggerClientEvent(eventName, source, extradata ... )

and

client to server

TriggerServerEvent(eventName, extradata...)