Installation

Guide to install jl-motel

  1. Import the database You can use HeidiSQL to import the database, just drag and drop motel.sql to your query

  2. Go to your qb-inventory/html/js/app.js or lj-inventory/html/js/app.js and 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