SetPlayerSeatbelt

From GT-MP
Jump to: navigation, search
SetPlayerSeatbelt
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

Puts on or detaches the seatbelt of a player.

Syntax

API.setPlayerSeatbelt(Client player, bool seatbelt);

Required Arguments

  • player: parameter input should be in Client type.
  • seatbelt: parameter input should be in bool type.

Usage example(s)

Example Description

API.setPlayerSeatbelt(Client player, bool seatbelt);

OOP

player.seatbelt = true;


References