Advertisement
fastman92

Get_vehicle_door_state

Jul 29th, 2011
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.59 KB | None | 0 0
  1. :Get_vehicle_door_state
  2. {
  3.  Description:
  4.     Gets current door state of vehicle handle.
  5.       1 - open
  6.       2 - closed
  7.  Parameters:
  8.    Passed:
  9.      0@ - vehicle handle  
  10.    Result:
  11.       1@
  12.     Returns true or false.
  13.  
  14.  Example:
  15.   0AB1: call_scm_func @Get_vehicle_door_state 1 car_handle 4@ store_state_to 5@  
  16. }
  17. 0A97: 1@ = car 0@ struct  
  18. 1@ += 1272  // This is memory adress. Car struct (specified car) + 1272  is adress of door state.
  19. // Found on http://www.gtamodding.com/index.php?title=Memory_Addresses_(SA)
  20. 0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
  21. 0AB2: ret 1 1@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement