Managing Model Downloading, implemented some YSF natives #1193
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Inspired by both #1107 and #636.
Implements 2 new natives that, as it names portray, manages custom model downloading for players.
SetDownloadAtConnect(bool:toggle)function takes a bool value and toggles whether player downloads custom models immediately after connecting or not.StartDownloadForPlayer(playerid)takes a single argument being the id of the player, and forces such player to begin custom models downloading.Partially covers #636 by adding 3 new natives:
ShowVehicle(vehicleid)HideVehicle(vehicleid)IsVehicleHidden(vehicleid)Used to show, hide and check if a vehicle is on hidden state.
Changes to how server tracks removed objects for each player
By having now an actual list of removed buildings that you can query using a new native,
IsBuildingRemovedForPlayer, while still being possible to fetch the count of deleted buildings.