Skip to content

Commit

Permalink
refactor: implement new config from apartments
Browse files Browse the repository at this point in the history
  • Loading branch information
dusan01 committed Nov 26, 2023
1 parent 005176d commit 1b565de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions client.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
local config = require '@qbx_apartments.config.shared'
local camZPlus1 = 1500
local camZPlus2 = 50
local pointCamCoords = 75
Expand Down Expand Up @@ -123,7 +124,7 @@ RegisterNUICallback('setCam', function(data, cb)
elseif type == "normal" then
SetCam(QB.Spawns[location].coords)
elseif type == "appartment" then
SetCam(Apartments.Locations[location].coords.enter)
SetCam(config.locations[location].coords.enter)
end
cb('ok')
end)
Expand All @@ -133,7 +134,7 @@ RegisterNUICallback('chooseAppa', function(data, cb)
setDisplay(false)
DoScreenFadeOut(500)
Wait(5000)
TriggerServerEvent("apartments:server:CreateApartment", appaYeet, Apartments.Locations[appaYeet].label)
TriggerServerEvent("apartments:server:CreateApartment", appaYeet, config.locations[appaYeet].label)
TriggerServerEvent('QBCore:Server:OnPlayerLoaded')
TriggerEvent('QBCore:Client:OnPlayerLoaded')
FreezeEntityPosition(cache.ped, false)
Expand Down
2 changes: 0 additions & 2 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ version '1.0.0'
shared_scripts {
'config.lua',
'@ox_lib/init.lua',
'@qbx_apartments/config.lua'
}

client_scripts {
Expand All @@ -31,5 +30,4 @@ files {
}

lua54 'yes'

use_experimental_fxv2_oal 'yes'

0 comments on commit 1b565de

Please sign in to comment.