Installation
Before you start, make sure you're logged into the CFX portal. This ensures you can download the asset and receive future updates.
Last updated
RegisterNetEvent('QBCore:Server:OnPlayerLoaded', function()
local playerSource = source --[[@as number]]
local player = exports.qbx_core:GetPlayer(playerSource)
local hasApartment = MySQL.single.await('SELECT * FROM properties WHERE owner = ?', {player.PlayerData.citizenid})
if not hasApartment then
TriggerClientEvent('apartments:client:setupSpawnUI', playerSource)
end
end)RegisterNetEvent('QBCore:Server:OnPlayerLoaded', function()
local playerSource = source --[[@as number]]
local player = exports.qbx_core:GetPlayer(playerSource)
local hasApartment = MySQL.single.await('SELECT * FROM properties WHERE owner = ?', {player.PlayerData.citizenid})
if not hasApartment then
--TriggerClientEvent('apartments:client:setupSpawnUI', playerSource)
end
end)