Try doing as i wrote. And do not change these " in TriggerEvent(‘andreas_spawnlocation:setNui’), you put ’ instead. I do not know if it does anything, but just give it a try.

yea tried that, doesn’t effect it either being TriggerEvent(‘andreas_spawnlocation:setNui’) or
TriggerEvent(“andreas_spawnlocation:setNui”)

i still get the menu to show but the transition to the character takes place, i can see my character but the ui is there and works perfectly fine, just trying to sort out how to hold that transition until you make the selection.

yeah ill problably post a way on how to fix that, but try making a callback that spawns your character after the button is pressed.

1 Like

that would be sick, im still learning lua and unsure how to do callbacks atm.

hmmm i am trying now to add location of owned properties , can you help me ?

Add it in the config, and after that add it in the html

I’m trying to figure out how to make it feel like an “instant taxi” on server-join. at this moment, I’ve gotten this to “work”

RegisterNUICallback(“spawnPlayer”, function(data)
local Location = data[“Location”]
SpawnPlayer(Location)
local player = GetPlayerPed(-1)
local vehicle = GetHashKey(“taxi”)
local coords = GetOffsetFromEntityInWorldCoords(playerPed, 0, 5.0, 1)

RequestModel(0xC703DB5F)
			while not HasModelLoaded(0xC703DB5F) do
				Wait(1)
			end
		local car = CreateVehicle(vehicle, coords, 0.0, true, false)

			SetPedIntoVehicle(player, car, 2)

end)

Problem is after it spawns the taxi, it resets my coord’s to 0,0,0, and fall through the map.

Not sure if @andreas_developing or someone had some insight on why it’s resetting to 0,0,0; or if i’m using the wrong Nui?

edit: even tried some playing around with the code, with no changes, but wanted to post it too.

RegisterNUICallback(“spawnPlayer”, function(data)
local Location = data[“Location”]
SpawnPlayer(Location)
local VehicleName = ‘Taxi’
RequestModel(0xC703DB5F)
while not HasModelLoaded(0xC703DB5F) do
Wait(3000)
end
local player = GetPlayerPed(-1)
local vehicle = GetHashKey(“taxi”)
–local coords = GetOffsetFromEntityInWorldCoords(playerPed, 0, 5.0, 1)
local coords = GetEntityCoords(PlayerPed)
local car = CreateVehicle(vehicle, coords.x, coords.y, coords.z, GetEntityHeading(PlayerPed), true, false)

		SetPedIntoVehicle(player, car, 2)
		SetEntityAsNoLongerNeeded(vehicle)
		SetModelAsNoLongerNeeded(VehicleName)

end)

from where did you find it?

Did you find a way? I tried a lot but couldn’t get it right :frowning:

I’m in Greece right now, but I’ll check it out as soon as I get home :slight_smile:

1 Like

Have a nice holiday, thanks!

Does this work? :slight_smile:

Here I make fork with css/english and how to make it work in esx_kashacters :slight_smile:

1 Like

When I’m making the character the spawn-menu pops up, am i doing anything wrong or is it just the way it is? (Using jsfour-register.)

Thank you, but theres no line “–TriggerEvent(‘esx_ambulancejob:multicharacter’, source)” in esx_kashacters client.lua

:frowning:

just put it after

  exports.spawnmanager:setAutoSpawn(false)
  TriggerEvent("andreas_spawnlocation:setNui")

I want this plugin to work only after join a server. Only for single use, without command. the menu will close automatically after select.

How do I make it automatically open menu when logging in? esx_identity does not match the use of the mouse, the first player must remain disabled.

(I don’t use Kashacters)

the – before trigger event means that line is not in use, and s/he forgot to take it out before forking it; ignore that line :stuck_out_tongue:

Anyway to make it not appear when i spawn ingame ?