Skip to content

Conversation

@stley
Copy link
Contributor

@stley stley commented Jan 24, 2026

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.

@stley stley changed the title StartDownloadForPlayer and SetDownloadAtConnect Managing Model Downloading, implemented some YSF natives Jan 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant