Simple script where you get to choose your spawnlocation.

Installation

  1. Download the script
  2. Place it in your [ESX] directory
  3. 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

I’ll fix it tomorrow :wink:

pictures?

how do you mean ?

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 :slight_smile:

It puts you at the last location that you left at :slight_smile:

1 Like

were do i type this to open up menu

Need help i will make a location who Player spawn in there apartement

no problem :heart:

Can you put more screenshots please.

make a short gif or video, is better… nice release :smiley:

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?