Files
ND_Core/ND_Core/server/main.lua
2022-08-09 00:53:35 +02:00

23 lines
597 B
Lua

-- For support join my discord: https://discord.gg/Z9Mxu72zZ6
NDCore = {}
NDCore.Players = {}
NDCore.Functions = {}
NDCore.Config = config
function GetCoreObject()
return NDCore
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}
end
end
end
end)