Hi,
I’m having some trouble coming to terms with defining the first spawn and calling it through ESX Identity. I’ve managed to trigger an even where by it opens a spawn menu, however I want to be able to define a specific spawn location for first time spawns in the server.
The below script is what I currently have. This (for all users - first spawns or existing users) opens a spawn menu. I want to set something so that new users (first spawns on that specific character) are spawned to a specific location without the option for the spawn selector).
Appreciate any help in advance…
RegisterNUICallback('register', function(data, cb)
myIdentity = data
TriggerServerEvent('esx_identity:setIdentity', data)
EnableGui(false)
Wait (500)
TriggerEvent('spawnselector:setNui')
TriggerEvent('openmenu')
end)