Simple script where you get to choose your spawnlocation.
Installation
- Download the script
- Place it in your [ESX] directory
- Type start andreas-spawnlocation in your server.cfg
Note:
When you want to open the menu, type TriggerEvent("andreas_spawnlocation:setNui")
Download link - https://github.com/andreas-developing/andreas-spawnlocation
Picture:
8 Likes
Could you show some pictures?
1 Like
sy20
9
this have the option of spawning in the last place that the person left or only in the fixed spawn options?
esx_kashacters\client\main
RegisterNetEvent(‘kashactersC:SpawnCharacter’)
AddEventHandler(‘kashactersC:SpawnCharacter’, function(spawn)
TriggerServerEvent(‘es:firstJoinProper’)
TriggerEvent(‘es:allowedToSpawn’)
TriggerEvent(“andreas_spawnlocation:setNui”)
2 Likes
TriggerEvent(’andreas_spawnlocation:setNui’)
You had ( ” ) instead of the ’
I updated the post a littebit, it shows you how to use it 
It puts you at the last location that you left at 
1 Like
were do i type this to open up menu
Naifen
15
Need help i will make a location who Player spawn in there apartement
Can you put more screenshots please.
sy20
18
make a short gif or video, is better… nice release 
1 Like
now sure if anyone got this going, but no menu or anything when loaded in game.
Mine won’t work at all, when i type the command /andreas, i get stocked by a cursor
anyone else figured out how to delay the transition on the Kashacters, ive got it working like someone has showed above… but it already does the transition to your character while you still have the spawn selection in place
RegisterNetEvent(‘kashactersC:SpawnCharacter’)
AddEventHandler(‘kashactersC:SpawnCharacter’, function(spawn)
TriggerEvent(‘andreas_spawnlocation:setNui’)
TriggerServerEvent(‘es:firstJoinProper’)
TriggerEvent(‘es:allowedToSpawn’)
What’s the folder called? Makesure i’ts not renamed. It should be called andreas_spawnlocation
i didnt remade, still bugs for a weird reason, is there a order to place it in the server.cfg or?