altv-issues
altv-issues copied to clipboard
alt.Camera class
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