altmp / altv-issues

Issues and roadmap for alt:V project
93 stars 17 forks source link

Add Mock API #758

Open LeonMrBonnie opened 3 years ago

LeonMrBonnie commented 3 years ago

Suggestion

Add a mock API to simulate players and actions etc.

Use cases

Useful for server developers for testing their features without needing other people to help, and also helpful for alt:V devs themselves to stress test sync changes etc.

Describe the solution you'd like

A new API with which you can create a mock player, send events from and to that mock player, make that mock player do actions (shooting, dying, entering a vehicle, etc.) and more

Describe alternatives you've considered

Currently, there are no real alternatives to this other than just having other real people join your server.

Additional context

N/A

FabianTerhorst commented 3 years ago

Afaik this was declined because people will abuse the Mock Client for botting.

LeonMrBonnie commented 3 years ago

Afaik this was declined because people will abuse the Mock Client for botting.

The mock API should only be allowed with debug mode enabled.

7Hazard commented 3 years ago

There's no clear definition for what should be mocked and how a solution can be approached. It's not something that will be in our road map anytime soon.