Database
Creating database tables and setting up the first user
Create Database tables
- Go to
localhost/phpmyadmin, login if required - When logged in, select your database.
tip
It should look like the image below. Server: 127.0.0.1 >> Database: [your db]

- To find the SQL files, go into the
SQLfolder
- ESX
- vRP
- QBCore
- Here you select the
ESX.sqlfile, drag it into the database. It should look like the image below!
- Here you select the
vRP.sqlfile, drag it into the database. It should look like the image below!
- Here you select the
QBCore.sqlfile, drag it into the database. It should look like the image below!

Create the first user
To be able to log in to the tablet, the first user must be created.
caution
This only applies the first time, new profiles MUST be created ingame on the tablet to avoid problems
- Go to
localhost/phpmyadminin your browser, select your database and click onomik_emstablet_ansatte
Your screen should now look like this:

- Then click on
Insert, the image below has a red circle around the button

- Then fill in each field with what is written below:
doctor_idShould be left empty, it will be filled in automaticallybadgeNumberthe users badge number e.g 10-01passwordthe users password e.g 1234
caution
It is important that you choose PASSWORD in the red marked box in the picture below, otherwise the password will not be encrypted and the user will not be able to log in

rankthe users rank e.g Paramedicresponsibilitythe users area of responsibility e.g Document Patient Information (Can be left empty)onDutyshould be0fleetStatusshould not be changedavatarshould not be changedcertificatesshould not be changededucationsshould not be changedpermissionsshould not be changedemployment_dateshould not be changed
- When you have filled in the above fields, click
Donejust belowpermissions - A profile has now been created, the last thing to do is to take the
doctor_idthat is written when you go out inomik_emstablet_ansatte, you will need it later
- ESX
- vRP
- QBCore
- Now go to the
userstable and find the person to be employed
caution
phone_number must not be NULL in the database, if you are using a phone that does not store it in the phone_number column. Contact me and I will help you.
- Now go to the
vrp_user_identitiestable and find the person to be employed
- Nu går du ind i
playerstabellen og finder den person der skal ansættes
- When you have found the person, go all the way to the right until you find a column called doctor_id, in that column you write the doctor_id you got in Step 5
- The person is now created and if everything is done correctly, the person can log in ingame, if there are problems, Contact OMikkel