gta.setTrafficEnabled

Function Client Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Client 1.0.0

void gta.setTrafficEnabled(bool enabled)

The gta.setTrafficEnabled function is used to set the enabled status of vehicle traffic moving around on internal path data for the local client.

Parameters

1) bool enabled Whether vehicle traffic is to move around on internal path data for the local client.

Return

void This function doesn't return a value.

Notes

  • The traffic is not synchronised.

Examples

There aren't any examples for this function.

Compatibility

  • This function was previously named game.setTrafficEnabled in client version 1.0.71.

Related

Client Related

      gta.setCiviliansEnabled
      gta.setTrafficEnabled
      gta.trafficDensity