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
SQL
folder
- ESX
- vRP
- QBCore
- Here you select the
ESX.sql
file, drag it into the database. It should look like the image below!
- Here you select the
vRP.sql
file, drag it into the database. It should look like the image below!
- Here you select the
QBCore.sql
file, 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/phpmyadmin
in 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_id
Should be left empty, it will be filled in automaticallybadgeNumber
the users badge number e.g 10-01password
the 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
rank
the users rank e.g Paramedicresponsibility
the users area of responsibility e.g Document Patient Information (Can be left empty)onDuty
should be0
fleetStatus
should not be changedavatar
should not be changedcertificates
should not be changededucations
should not be changedpermissions
should not be changedemployment_date
should not be changed
- When you have filled in the above fields, click
Done
just belowpermissions
- A profile has now been created, the last thing to do is to take the
doctor_id
that is written when you go out inomik_emstablet_ansatte
, you will need it later
- ESX
- vRP
- QBCore
- Now go to the
users
table 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_identities
table and find the person to be employed
- Nu går du ind i
players
tabellen 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