2022-07-16 04:46:27 +02:00
|
|
|
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6
|
|
|
|
|
|
|
|
|
|
NDCore = {}
|
2022-07-16 00:12:02 -04:00
|
|
|
NDCore.Players = {}
|
|
|
|
|
NDCore.Functions = {}
|
|
|
|
|
NDCore.Config = config
|
2022-07-16 04:46:27 +02:00
|
|
|
|
|
|
|
|
function GetCoreObject()
|
|
|
|
|
return NDCore
|
2022-08-09 00:53:35 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
CreateThread(function()
|
|
|
|
|
while true do
|
|
|
|
|
Wait(30000)
|
|
|
|
|
for player, playerInfo in pairs(NDCore.Players) do
|
|
|
|
|
local ped = GetPlayerPed(player)
|
|
|
|
|
if DoesEntityExist(ped) then
|
|
|
|
|
local lastLocation = GetEntityCoords(ped)
|
|
|
|
|
playerInfo.lastLocation = {x = lastLocation.x, y = lastLocation.y, z = lastLocation.z}
|
2022-08-11 01:16:49 +02:00
|
|
|
TriggerClientEvent("ND:updateLastLocation", player, playerInfo.lastLocation)
|
2022-08-09 00:53:35 +02:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
2022-10-04 00:29:42 +02:00
|
|
|
end)
|
2022-11-14 00:53:37 +01:00
|
|
|
|
|
|
|
|
if GetExport("ox_inventory") then
|
|
|
|
|
SetConvarReplicated("inventory:framework", "nd")
|
|
|
|
|
end
|