Spawn script?

I see some servers using a spawn script to spawn players in a specific location?? I too need that script so that I can spawn players at the top of the drift track i’m using any help??

1 Like

You can change or add the the spawn location in map.lua

spawnpoint 'SKIN_NAME' { x = X_CORD, y = Y_CORD, z = Z_CORD }
2 Likes

You can edit the game mode file to change spawn coordinates. Just look in your servers config to see which gamemofe you’re running, then edit that one.

3 Likes

Question is how do I get the cords? haha :stuck_out_tongue:

1 Like

Go to your drift track. (maybe with a chopper or something.) then open Enhanced Reborn and i think it was under teleport you can select “Show coordinates”.

Edit: Here can you find all the GTA5 skins (Ped Models): http://ragepluginhook.net/PedModels.aspx

2 Likes

UPDATE: I don’t have a map.lua file in my drift track directory…

1 Like

post some screenshot from your directory.

Do what Trust37 says!

1 Like

You need something like that for custom spawns.

__resource.lua

resource_type 'map' { gameTypes = { fivem = true } }

map 'map.lua'  

map.lua

spawnpoint 'a_m_y_hipster_01' { x = -802.311, y = 175.056, z = 72.8446 }
1 Like

did you sort this ?

go to your serveryml see which map ur running , open the resource , map.lua add a spwanpoint with xyz coordinates of where you want him to spawn and save and next start good

1 Like

hey can you give me plz the path to find in my server the __resource.lua to put there the code for spawn?

4 Likes

qalle coords

that’s 3 years ago dude

4 years old topic which people are still bumping…