Difference between revisions of "LOCK CAR DOORS"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{Native |np=2 |p1t=pointer |p1d=car handle |p2t=integer |p2d=flag }} This sets the lock status of car doors. *1 - unlocked car *2 - locked car - the player and characters refuse…')
 
(Added value 7, and a note on bit flags.)
 
Line 11: Line 11:
 
*3 - locked for the player, not locked for NPCs
 
*3 - locked for the player, not locked for NPCs
 
*4 - locked, the player is stuck in the car
 
*4 - locked, the player is stuck in the car
 +
*7 - locked, player can break in
 
etc.
 
etc.
 +
 +
NOTE: These may actually be bit flags instead, and the descriptions above may be combinations of flags!

Latest revision as of 10:25, 14 October 2012

LOCK_CAR_DOORS
Number of parameters: 2
Parameter #TypeDescription
1.pointercar handle
2.integerflag
Return value:
TypeDescription
None

This sets the lock status of car doors.

  • 1 - unlocked car
  • 2 - locked car - the player and characters refuses to enter the car
  • 3 - locked for the player, not locked for NPCs
  • 4 - locked, the player is stuck in the car
  • 7 - locked, player can break in

etc.

NOTE: These may actually be bit flags instead, and the descriptions above may be combinations of flags!