[Request] RP Area Spawnpoint

Little idea, a resource for when e.g. /rpsandy or /rp1 is entered. That the server will load coordinates in Sandy Shores to spawn the player. Each individual spawn points for different RP areas. These areas will only activate upon entering the command.

I would look into this but don’t have the time right now.

Just a little idea and would make RP easier.

1 Like

This script is next to impossible to make because your fivem-map-skater contains the spawn points for the server. Which if you delete you cant spawn in. So, someone would need to make a script which alters that automatically but still you would need to restart the server for it to happen anyway.

I have been thinking of editing the map manager to not really spawn you when the map is changed. Then a script could change the map and spawn points would change.

I will add this to my AOP script when I figure it out…

I think is possible to do this mate @HighRez

So i didnt get it, do you want the player to spawn in the RP area every time they enter the server or just when they connect for the first time?

I was thinking say if I do /rpsandy, and set coorindates for that comand, they spawn in sandy, however once I change the rp area with say /rppaleto it would change the respawn coorinates to paleto bay.

exports.spawnmanager:setAutoSpawn(false)

exports.spawnmanager:spawnPlayer(GetPlayerInteger(GetPlayerId()), function(spawnPoint)
    spawnVehicle(spawnPoint)
end)