DeadCamera = function()
if IsButtonBeingPressed(2, 0) then
StarDeadTime = GetTimer()
repeat
TIME = (GetTimer() - StarDeadTime)/1000
DeltaX = r*math.cos(AngularVelocity*TIME + Angle0)
DeltaZ = TIME*ZConstant
gPX, gPY, gPZ = PedGetPosXYZ(gPlayer)
CameraLookAt = gPX, gPY, gPZ + 1.5
CameraPosition = gPX + DeltaX, gPY + 1, gPZ + 2 + DeltaZ
CameraSetXYZ(CameraPosition, CameraLookAt)
Wait(0)
until GetTimer() - StarDeadTime > 5000
CameraLookAtPlayer()
end
end
It doesn't work