Skip to content
AroliSG edited this page May 16, 2021 · 15 revisions

Constructor

let Vehicle = server.createVehicle (model, world, pos x, pos y, pos z, angle, primary colour, secondary colour);

  • Vehicle.delete ();
  • Vehicle.setSpawnRotationEuler (Pos x, Pos y, Pos z);
  • Vehicle.isStreamedForPlayer (Instance);
  • Vehicle.getSpawnRotationEuler ();
  • Vehicle.getTurrentRotation ();
  • Vehicle.setIdleRespawnTimeout (Integer timeout);
  • Vehicle.getIdleRespawnTimeout ();
  • Vehicle.getSyncController ();
  • Vehicle.getSyncReason ();
  • Vehicle.setWorld (Integer world);
  • Vehicle.getWorld ();
  • Vehicle.getModel ();
  • Vehicle.getOccupant (Integer id);
  • Vehicle.respawn ();
  • Vehicle.setImmunities ();
  • Vehicle.setHealth (Integer health);
  • Vehicle.getTurnSpeed (Integer speed);
  • Vehicle.setImmunityFlags (Flags);
  • Vehicle.getRotation ();
  • Vehicle.getOption (Option);
  • Vehicle.setRotationEuler (Pos x, Pos y, Pos z);
  • Vehicle.setLightsData (Boolean);
  • Vehicle.setTaxiLight (Boolean);
  • Vehicle.setPosition (Pos x, Pos y, Pos z);
  • Vehicle.getRotationEuler ();
  • Vehicle.getSpawnPosition ();
  • Vehicle.getHealth ();
  • Vehicle.getTaxiLight ();
  • Vehicle.setRadio (Integer id);
  • Vehicle.getPosition ();
  • Vehicle.getRadio ();
  • Vehicle.getImmunityFlags ();
  • Vehicle.setSpeed ( arg0, arg1, arg2, arg3, arg4 );
  • Vehicle.getImmunities ();
  • Vehicle.isWrecked ();
  • Vehicle.detonate ();
  • Vehicle.setTurnSpeed ( arg0, arg1, arg2, arg3, arg4 );
  • Vehicle.setSpawnRotation ( arg0, arg1, arg2, arg3 );
  • Vehicle.getSpawnRotation ();
  • Vehicle.setColours (Primary colour, Secondary colour);
  • Vehicle.getLightsData ();
  • Vehicle.setRotation ( arg0, arg1, arg2, arg3 );
  • Vehicle.getSpeed ( arg0 );
  • Vehicle.setOption ( arg0, arg1 );
  • Vehicle.setSpawnPosition (Pos x, Pos y, Pos x);
  • Vehicle.getColours ();
  • Vehicle.getTyreStatus ();
  • Vehicle.getDoorStatus ();
  • Vehicle.setDoorStatus (int,int);
  • Vehicle.setTyreStatus (int,int);
  • Vehicle.getPanelStatus (int,int);
  • Vehicle.setPanelStatus (int,int)
  • Vehicle.getId ();
  • Vehicle.isValid ();
  • Vehicle.print ();

Handlings

  • Vehicle.setHandlingRule (Integerrules, Float value);
  • Vehicle.resetHandling ();
  • Vehicle.getHandlingRule (Integer rule);
  • Vehicle.handlingRuleExists (Integer rule);
  • Vehicle.resetHandlingRule (Integer rule);

Example

server.createVehicle(200, player.getWorld (), player.getPosition().x, player.getPosition().y, player.getPosition().z, 1.1, 2, 4);

Clone this wiki locally