From 3ac186461cf076543a327ca4ee02b6f309e8deaa Mon Sep 17 00:00:00 2001 From: Phelps <94879374+NotPhelps@users.noreply.github.com> Date: Sun, 2 Feb 2025 18:54:16 -0500 Subject: [PATCH] Update README.md fixes capitalization issues credit to https://github.com/Project-Sloth/ps-housing/pull/273 and https://github.com/Project-Sloth/ps-housing/pull/276 --- README - INSTALL INSTRUCTIONS/QBOX/README.md | 24 ++++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README - INSTALL INSTRUCTIONS/QBOX/README.md b/README - INSTALL INSTRUCTIONS/QBOX/README.md index 4ee65c4..b624210 100644 --- a/README - INSTALL INSTRUCTIONS/QBOX/README.md +++ b/README - INSTALL INSTRUCTIONS/QBOX/README.md @@ -64,8 +64,8 @@ local function spawnLastLocation() }) end) local insideMeta = QBX.PlayerData.metadata.inside - if insideMeta.propertyId then - TriggerServerEvent('ps-housing:server:enterProperty', tostring(insideMeta.propertyId)) + if insideMeta.property_id then + TriggerServerEvent('ps-housing:server:enterProperty', tostring(insideMeta.property_id)) end TriggerServerEvent('QBCore:Server:OnPlayerLoaded') @@ -91,20 +91,20 @@ Find `inputHandler` in client/main.lua and replace with: local function inputHandler() while DoesCamExist(previewCam) do if IsControlJustReleased(0, 188) then - previousButtonID = currentButtonID - currentButtonID -= 1 + previousButtonId = currentButtonId + currentButtonId -= 1 - if currentButtonID < 1 then - currentButtonID = #spawns + if currentButtonId < 1 then + currentButtonId = #spawns end updateScaleform() elseif IsControlJustReleased(0, 187) then - previousButtonID = currentButtonID - currentButtonID += 1 + previousButtonId = currentButtonId + currentButtonId += 1 - if currentButtonID > #spawns then - currentButtonID = 1 + if currentButtonId > #spawns then + currentButtonId = 1 end updateScaleform() @@ -147,10 +147,10 @@ lib.callback.register('qbx_spawn:server:getLastLocation', function(source) end) ``` -Find `qbx_spawn:server:getHouses` in server/main.lua and replace with: +Find `qbx_spawn:server:getProperties` in server/main.lua and replace with: ```lua -lib.callback.register('qbx_spawn:server:getHouses', function(source) +lib.callback.register('qbx_spawn:server:getProperties', function(source) local player = exports.qbx_core:GetPlayer(source) local houseData = {}