altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

alt.Camera class

Open ZackaryH8 opened this issue 3 years ago • 0 comments
trafficstars

Description of the problem

Currently to use cameras, we have to use natives which is quite awkward and to keep things neat and tidy you end up having to write a wrapper around the natives. It means we don't have to keep track of cameras ourselves.

Desired solution for the problem

I'm proposing an alt implementation for this instead.

new alt.Camera(pos, rot, fov)

  • Various point at methods (Coords, Entity, Bones)
  • Various attach methods (Ped, Vehicle, Bones)
  • Shake effects
  • FOV (Gettters / Setters)
  • DOF (Gettters / Setters)
  • Ability to get all cameras though alt.Camera.all (More if possible)

Alternatives you considered

Writing a wrapper class using native functions

Additional context

It's been talked about in Discord and was told some of it had already been reverse engineered.

Version

No response

ZackaryH8 avatar Aug 02 '22 19:08 ZackaryH8