I am trying to figure out how I can make players first spawn at MRPD instead of in a apartment, I am building a zombie type survival RP server and it is the main safezone. I had a server before I had them spawninng at the airport but do not remember how it was done
you need to be a little bit more specific about what you’re running,
but it would be the coordinates of the location you spawn at,
Make a new account and run the following command
/coords using the coordinates that gives you back,
Use something like VSC to search your server files, and type those coordinates in
go to MRPD type the same command and change the coordinates it gives you at apartments to the ones from MRPD
local coordsVisible = false
function DrawGenericText(text)
SetTextColour(186, 186, 186, 255)
SetTextFont(7)
SetTextScale(0.378, 0.378)
SetTextWrap(0.0, 1.0)
SetTextCentre(false)
SetTextDropshadow(0, 0, 0, 0, 255)
SetTextEdge(1, 0, 0, 0, 205)
SetTextEntry(“STRING”)
AddTextComponentString(text)
DrawText(0.40, 0.00)
end
Citizen.CreateThread(function()
while true do
local sleepThread = 250
if coordsVisible then
sleepThread = 5
local playerPed = PlayerPedId()
local playerX, playerY, playerZ = table.unpack(GetEntityCoords(playerPed))
local playerH = GetEntityHeading(playerPed)
DrawGenericText(("~g~X~w~: %s ~g~Y~w~: %s ~g~Z~w~: %s ~g~H~w~: %s"):format(FormatCoord(playerX), FormatCoord(playerY), FormatCoord(playerZ), FormatCoord(playerH)))
end
Citizen.Wait(sleepThread)
end
end)
FormatCoord = function(coord)
if coord == nil then
return “unknown”
end
return tonumber(string.format("%.2f", coord))
end
ToggleCoords = function()
coordsVisible = not coordsVisible
end
RegisterCommand(“coords”, function()
ToggleCoords()
end)