Originally Posted by lyravega;847
[Highlight="Lua"
EVENT_MANAGER:RegisterForEvent( "QB" , EVENT_ADD_ON_LOADED , QB_Initialize )[/highlight]
|
The first parameter for RegisterForEvent is supposed to be a unique identifier. "QB" is not unique.
And, yes, for custom "events" you want callbacks. So follow what Garkin said above.