SetSnowEnabled

From GT-MP
Jump to: navigation, search
SetSnowEnabled
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

Enables snow for a player

Dialog-warning.png The parameter infoSubtitle will be removed in the next update.

This API is known to cause crashes which will be fixed with the next update.

Syntax

In Javascript
Client-Side Function

API.setSnowEnabled(bool toggle, bool deepPedTracks, bool deepVehicleTracks, bool infoSubtitle = true);

Required Arguments

  • toggle parameter input should be in bool type. true when snow should be enabled, false otherwise.
  • deepPedTracks parameter input should be in bool type. true if ped tracks should be visible, false otherwise.
  • deepVehicleTracks parameter input should be in bool type. true if vehicle tracks should be visible, false otherwise.
  • infoSubtitle parameter input should be in bool type. true when the subtitle "Toggline snow terrain..." should be visible while toggling it, false otherwise.

Usage example(s)

In Javascript
Client-Side Function

Make snow visible for the local player

API.setSnowEnabled(true, true, true, true);

References