Finding Coordinates


#1

Hi so lets say im trying to change the spawn location which i am i need all the Coordinates to do so how can i find them if im standing on the location i want people to spawn when they join my server ?


#2

I can fix it for you just contact me and i will fix it :slight_smile:


#3

You could just make it like a very simple command:

RegisterCommand('mypos', function()
	local ped = GetPlayerPed(-1)
	local pos = GetEntityCoords(ped, true)

	TriggerEvent('chatMessage', '', {255,255,255}, 'Pos X: ' .. pos.x .. ' Pos Y: ' .. pos.y .. ' Pos Z: ' .. pos.z)
end)