πΏInstallation
Discover how to install your script.
β’ STEP 1: DEPENDENCIES
ensure zr-locationsβ’ STEP 3: DATABASE
β’ STEP 4: EVENT NAME
TriggerClientEvent('zr-locations:start', source)RegisterNetEvent('qb-multicharacter:server:loadUserData', function(cData)
local src = source
if QBCore.Player.Login(src, cData.citizenid) then
repeat
Wait(10)
until hasDonePreloading[src]
print('^2[qb-core]^7 '..GetPlayerName(src)..' (Citizen ID: '..cData.citizenid..') has succesfully loaded!')
QBCore.Commands.Refresh(src)
loadHouseData(src)
--TriggerClientEvent('apartments:client:setupSpawnUI', src, cData)
TriggerClientEvent('zr-locations:start', src)
TriggerEvent("qb-log:server:CreateLog", "joinleave", "Loaded", "green", "**".. GetPlayerName(src) .. "** (<@"..(QBCore.Functions.GetIdentifier(src, 'discord'):gsub("discord:", "") or "unknown").."> | ||" ..(QBCore.Functions.GetIdentifier(src, 'ip') or 'undefined') .. "|| | " ..(QBCore.Functions.GetIdentifier(src, 'license') or 'undefined') .." | " ..cData.citizenid.." | "..src..") loaded..")
end
end)Last updated
