Some basic questions

Hey there,
I am brand new to QBCore and still trying to figure everything out. I have some questions I hope you guys can help me figure out so that I can use this base better. I have looked through the docs and havent seen anything related to these, but if I have missed it, please do point me in the right direction.

  1. Does a job have to have 4 paygrades? Can it be more or less?
  2. Can you have multiple jobs relating to one field? Like multiple police jobs if I had multiple agencies?
  3. What does all the symbols at the bottom of the hud below the minimap mean?
  4. I can’t seem to access the weapon wheel anymore, how do you use guns now?
  5. I tried getting police cars out of the garage but then it said it was empty. So I spawned in some police cars and tried to store them, but it said they couldn’t be stored. How do I do that?
  6. When I go to a bank and hit e to access it, it does nothing. How do I fix this?

I probably will have more questions, but these are the ones I came up with now.

  1. You can edit as many grades as you wish to the job.lua. However, when you update the jobs, you need to reassign said person the job so it updates.

  2. Yes, but you will need to do some editing, there is now a playerjob.type if you check in the docs

  3. Health, Hunger, Thirst, Armour, Stress, Stamina

  4. It’s all inventory base, you will need to give yourself the item, put it in your hotbar, and press the corresponding number. You can enable it though if you so wish, but it’s not recommended with qbcore.

  5. Any cars you wish to work with the framework need to be added to the vehicles.lua.

  6. You probably forgot to insert the sql, if you didn’t do it with txadmin, if not, you’d need to provide some sort of error.

Appricate the answers, related to number 6, how do I insert the sql (what should I look for as well) I just freshly installed a new qbcore server through txadmin. Also where can I find the vehicles.lua for the police job?

Thanks.

If you installed it on TxAdmin, you should already have the DB for the banking.

I’d suggest checking for F8 errors or Console errors when you press E at the bank.

Vehicles.lua is what hold all the vehicles for the framework, that’s in your qb-core/shared folder

Alright sorry for the long wait, i had to finish my shift at work before I could come home and test it but you are right, it is throwing an error.

[ script:qb-core] (nil stack trace)SCRIPT ERROR: SCRIPT ERROR: qb-banking was unable to execute a query!
[ script:qb-core] Table ‘qbcoreframework_fea327.bank_cards’ doesn’t exist
[ script:qb-core] SELECT * FROM bank_cards WHERE citizenid = ? ORDER BY record_id DESC LIMIT 1 [“YWW06019”]
[ script:qb-core] > getBankCard (@qb-banking/server/main.lua:215)
[ script:qb-core] > ref (@qb-banking/server/main.lua:242)
[ script:qb-core] > (@oxmysql/dist/build.js:21749)
[ script:qb-core] > processTicksAndRejections (node:internal/process/task_queues:96)
[ script:qb-core] > async rawQuery (@oxmysql/dist/build.js:21719)
[ script:qb-core]
[ script:qb-core] (nil stack trace)

Update: Ok I just reuploaded the sql and it works now. Apparently the bank card table had not be created by txadmin for some reason.

Now I am just trying to figure out how to store vehicles in the police garage

If you check the latest commit on the qbcore.sql in the txadmin recipe, this has been fixed.

Just re-add the banking part.

im having the same issue no.6

fresh install from TxAdmin

[ script:qb-core] (nil stack trace)SCRIPT ERROR: SCRIPT ERROR: qb-banking was unable to execute a query!
[ script:qb-core] Table ‘familylife.bank_cards’ doesn’t exist

Any help is massively appreciated

If you look at my update above, its a very easy fix, you just have to import the sql to your database (phpmyadmin) and it works like a charm.

I just wonder Why only the banking script?
I’ll give it a go but I’m not brilliant with DB

Kind regards,
Rhys

Don’t know personally why this is. But its a very easy thing to do. You just go into your database, go to import, and import the sql file you need (in this case the banking one), phpmyadmin does the rest for you.

what did you do

I’ve just done it. Okay so very easy even for me and I’m dumb :rofl:

  1. Open phpmyadmin (Through XAMPP or Heidi or whatever you use.

  2. Find the import button and go into your server folder and find the file your having trouble with (in my case banking) inside there you should have an sql file, attach that to the file explorer page it brings up after hitting import.

  1. Hit GO! At the bottom right. You’ll see a new tab on the right that you were missing.

Next load your sever up and problem fixed.

If I can do it you can do it lol good luck

thank you but i had found out to do it but thank you

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