This commit is contained in:
delucecc 2023-11-12 22:22:40 -08:00
parent f1a2d3fb13
commit 92d388cc36

View File

@ -1,12 +1,12 @@
local entity_ids = {} local entity_ids = {}
if Config.Persistent then if Config.Persistent then
if Config.Framework == 'qb' then if Config.FrameWork == 'qb' then
QBCore = exports['qb-core']:GetCoreObject() QBCore = exports['qb-core']:GetCoreObject()
AddEventHandler('QBCore:Client:OnPlayerLoaded', function() AddEventHandler('QBCore:Client:OnPlayerLoaded', function()
Wait(1500) Wait(1500)
SpawnProps() SpawnProps()
end) end)
elseif Config.Framework == 'esx' then elseif Config.FrameWork == 'esx' then
local ESX = exports["es_extended"]:getSharedObject() local ESX = exports["es_extended"]:getSharedObject()
RegisterNetEvent('esx:playerLoaded') RegisterNetEvent('esx:playerLoaded')
AddEventHandler('esx:playerLoaded', function() AddEventHandler('esx:playerLoaded', function()