-- Efso client
local pointCamCoords2 = 0
local cam2Time = 1000
local cam1Time = 500
local camZPlus2 = 50
local camZPlus1 = 1500
local pointCamCoords = 75
RegisterNUICallback("LastLocation", function()
local playerPed = PlayerPedId()
local campos = {x = 216.32, y = -814.36, z = 30.64, h = 163.4 }
cam2 = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus1, 300.00,0.00,0.00, 110.00, false, 0)
PointCamAtCoord(cam2, campos.x, campos.y, campos.z + pointCamCoords)
SetCamActiveWithInterp(cam2, cam, cam1Time, true, true)
if DoesCamExist(cam) then
DestroyCam(cam, true)
end
Citizen.Wait(31)
cam = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus2, 300.00,0.00,0.00, 110.00, false, 0)
PointCamAtCoord(cam, campos.x, campos.y, campos.z + pointCamCoords2)
SetCamActiveWithInterp(cam, cam2, cam2Time, true, true)
SetEntityCoords(playerPed, campos.x, campos.y, campos.z)
end)
-- Index baya zorlu geçti ( @click="CleanCoDeLastLocation()" )
-- Js falan
CleanCoDeLastLocation(){
$.post(`https://${GetParentResourceName()}/LastLocation`, JSON.stringify({}));
}