PutPlayerInVehicle

From Nomad DB
Revision as of 16:38, 15 April 2020 by Cobra (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Puts the specified pawn into the first seat of the specified vehicle.

Syntax

PutPlayerInVehicle(pawnId, vehicleId)
  • pawnId (string): ID of the pawn that should be put into the specified vehicle
  • vehicleId (string): ID of the vehicle the specified pawn should be put into

Example

local car = SpawnEntityFromArchetype("{4bfd48bb-003b-4fa2-9f42-a6aa2732609e}", 0, 0, 65, 0, 0, 0)
PutPlayerInVehicle(GetLocalPlayerEntityId(), car)

Related Pages