Installation
Guide to install jl-motel
Attention:
Please read all of these carefully, don't rush, and keep focus, I don't recommend you doing this on 2am in the morning, go to sleep my friend π
Import the database You can use HeidiSQL to import the database, just drag and drop motel.sql to your query
Go to your
qb-inventory/html/js/app.jsorlj-inventory/html/js/app.jsand add this snippet
else if (itemData.name == "motel_key") {
$(".item-info-title").html(
"<p>" + itemData.label + " " + itemData.info.room.label + "</p>"
);
$(".item-info-description").html(
"<p>" +
itemData.description +
"</p><p>" +
"Motel: " +
itemData.info.motel.label +
"</p><p>" +
"Room: " +
itemData.info.room.label +
"</p><p>" +
"Owner: " +
itemData.info.firstname +
" " +
itemData.info.lastname +
"</p>" +
"<p>" +
"CID: " +
itemData.info.owner +
"</p>"
);
}For example
3. Go to your qb-core/shared/items.lua and add this snippet
4. Go to your qb-core/server/player.luaand find this
Replace that with this
5. Go to qb-spawn/client.lua search for spawnplayer NUICallback,
Find if type == "current"and follow the method below
Replace with
Last updated