Support more RPC (server-side) Natives
Hello,
I would like to suggest supporting more server-side natives in the Player class server-side There is a lot we can do now server-side that is good practice for security reasons 👍
For reference here is the file containing all the rpc natives for FiveM rpc_spec_natives.lua
You can also search on the Native Reference documentation for server-side natives by filtering for server API-set Image and then search for "Entity" or "Ped" or even "Player".
All of these natives combined can be use to manage peds (perhaps creating a server side Entity class / Ped class)
Thanks! This is a great idea to implement. I started noticing that we're missing a lot of these server side classes and it'd be great to add them. Will probably look into this soon since I've been using these natives a fair bit recently.
Added serverside Ped and Entity classes as a starting point. Will revisit this later once those rpc natives make it into the latest recommended build.