RegisterNUICallback("Spawnsonkonum", function()
ESX.TriggerServerCallback('getSpawnPos', function(pos)
selectedspawnposition = pos
local playerPed = PlayerPedId()
local campos = pos
cam = CreateCam("DEFAULT_SCRIPTED_CAMERA", 1)
SetCamCoord(cam, pos.x, pos.y, pos.z+200)
PointCamAtCoord(cam, pos.x, pos.y, pos.z+2)
SetCamActiveWithInterp(cam, startcam, 3700, true, true)
Citizen.Wait(3700)
cam2 = CreateCam("DEFAULT_SCRIPTED_CAMERA", 1)
SetCamCoord(cam2, pos.x, pos.y, pos.z+1)
PointCamAtCoord(cam2, pos.x+10, pos.y, pos.z)
SetCamActiveWithInterp(cam2, cam, 900, true, true)
end)
end)