The resouce itself:
Made C# client-server resource which would help developers to structure their gamemodes with callbacks. In clientside there are currently 103 different callbacks and 97 in serverside. You can see all callbacks from here: https://github.com/Caupz/GTAV-MPFramework with all the instructions to how to get it running.
There are some additional features that are in experimental mode like random wind and weather system. Those can be enable/disable through object properties (more info at github). If you also want to enable debug logs on client events then set ClientCore object.debug = true;
I’m going to post a few of them here:
...
OnPlayerStartedOnVehicle(Player player);
OnPlayerStoppedOnVehicle(Player player);
OnVehicleHealthGain(Player player, int vehicleNetworkId, int vehicleHealth, float vehicleBodyHealth, float vehicleEngineHealth, float vehiclePetrolTankHealth);
OnVehicleHealthLoss(Player player, int vehicleNetworkId, int vehicleHealth, float vehicleBodyHealth, float vehicleEngineHealth, float vehiclePetrolTankHealth);
OnVehicleCrash(Player player, int vehicleNetworkId);
OnPlayerStartedAiming(Player player, uint weapon);
OnPlayerStoppedAiming(Player player, uint weapon);
OnPlayerReadyToShoot(Player player, uint weapon);
OnPlayerNotReadyToShoot(Player player);
OnPlayerEnteredMainMenu(Player player);
OnPlayerLeftMainMenu(Player player);
...
I have tested all events/callbacks in client- & serverside how you want to call them except the OnPlayerStunned ones.
There are going to be updates in next few weeks when I have more time, going to have to run at the moment. Just thought it would help already someone…