Camera getters

Hello i’m requesting some getters for cameras (server-side):

  • Check if the player is in first person (walk and vehicle)
  • Check if the player is aiming a entity, if yes return the netID of this entity
  • Check if the player is standing

These are already possible, confused how “Check if the player is standing” relates to cameras, or “Check if the player is aiming a entity, if yes return the netID of this entity”

  1. GetFollowPedCamViewMode - FiveM Natives @ Cfx.re Docs
  2. GetEntityPlayerIsFreeAimingAt - FiveM Natives @ Cfx.re Docs (manual raycast is also possible)
  3. IsPedRagdoll - FiveM Natives @ Cfx.re Docs

Those natives are not server side

There is a server sided native for IsPedRagdoll - FiveM Natives @ Cfx.re Docs

But, why would you need to know what someone is aiming at or if they are in first person or not on the server? You may also send that data.

Sending data to the server every x seconds is not the best for me, also thanks for the other native didn’t know, couldn’t find it for x reason lol

Sending data every x seconds makes no sense if your data isn’t updated frequently. Send data when it’s necessary! I believe State bags - Cfx.re Docs is a perfect thing to make server aware of some state that is not meant to be synced by the game.

2 Likes