Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
fixes capitalization issues

credit to Project-Sloth#273
and Project-Sloth#276
  • Loading branch information
NotPhelps authored Feb 2, 2025
1 parent 06fdb4f commit 3ac1864
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README - INSTALL INSTRUCTIONS/QBOX/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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()
Expand Down Expand Up @@ -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 = {}

Expand Down

0 comments on commit 3ac1864

Please sign in to comment.