Lilibeth
Gold Elite
- Joined
- Jul 4, 2021
- Messages
- 186
- Reaction score
- 42,656
- Points
- 316
Hello VAG Forum Family
Today I will give you information about the motel system with meta items
I hope it is a useful post for you
Credit:
almez
FEATURE
· All rooms and warehouses can only be opened by the person who has the key
· You can take out as many spare keys as you want
· Everything can be edited via Config, you can add as many rooms as you want
· If the room owners do not forget to lock their storage and door, their room may be robbed
· You can sell your room back at any time
To pun_idgun, where I added a code that automatically transfers it to the clipboard to get the position of the objects
SETUP
· First of all, we throw the almez-motels folder into the resources and start it from server.cfg.
· We transfer the SQL file in the file to the database
· Enter qb-inventory/html/js/app.js and search for the code below
· Enter the code I gave at the bottom of this code as I show in the photo.
FEATURE
· All rooms and warehouses can only be opened by the person who has the key
· You can take out as many spare keys as you want
· Everything can be edited via Config, you can add as many rooms as you want
· If the room owners do not forget to lock their storage and door, their room may be robbed
· You can sell your room back at any time
To pun_idgun, where I added a code that automatically transfers it to the clipboard to get the position of the objects
Hidden link for visitors, to see
Log in or register now.
Hidden link for visitors, to see
Log in or register now.
Hidden link for visitors, to see
Log in or register now.
Hidden link for visitors, to see
Log in or register now.
Hidden link for visitors, to see
Log in or register now.
SETUP
· First of all, we throw the almez-motels folder into the resources and start it from server.cfg.
· We transfer the SQL file in the file to the database
· Enter qb-inventory/html/js/app.js and search for the code below
Code:
function FormatItemInfo(itemData)
· Enter the code I gave at the bottom of this code as I show in the photo.
JavaScript:
} else if (itemData.name == "motelkeys") {
$(".item-info-title").html('<p>'+itemData.label+'</p>')
$(".item-info-description").html('<p>Oda No: ' + itemData.info.motel + '</p>');
GOOD FORUMS
Last edited by a moderator: