oof icon indicating copy to clipboard operation
oof copied to clipboard

Support more RPC (server-side) Natives

Open Ekinoxx0 opened this issue 4 years ago • 2 comments

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)

Ekinoxx0 avatar Mar 19 '21 00:03 Ekinoxx0

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.

benank avatar Mar 19 '21 00:03 benank

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.

benank avatar Mar 19 '21 19:03 benank