Difference between revisions of "SET VEHICLE DOOR OPEN"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Native |np=2 |p1t=vehicle |p1d= |p2t=door id |p2d= }} Door Ids: 0 - Left front door 1 - Right front door 2 - Left rear door 3 - Right rear door 4 - Hood 5 - Trunk...")
 
 
Line 25: Line 25:
 
Ex:  
 
Ex:  
  
Ped player = Game.Player.Character;
+
Function.Call(Hash.SET_VEHICLE_DOOR_OPEN, Game.Player.Character.CurrentVehicle, 5);
 
 
Vehicle vehicle = player.CurrentVehicle;
 
 
 
Function.Call(Hash.SET_VEHICLE_DOOR_OPEN, vehicle, 5);
 

Latest revision as of 03:54, 15 June 2017

SET_VEHICLE_DOOR_OPEN
Number of parameters: 2
Parameter #TypeDescription
1.vehicle
2.door id
Return value:
TypeDescription
None


Door Ids:

0 - Left front door

1 - Right front door

2 - Left rear door

3 - Right rear door

4 - Hood

5 - Trunk


Ex:

Function.Call(Hash.SET_VEHICLE_DOOR_OPEN, Game.Player.Character.CurrentVehicle, 5);