Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :Get_vehicle_door_state
- {
- Description:
- Gets current door state of vehicle handle.
- 1 - open
- 2 - closed
- Parameters:
- Passed:
- 0@ - vehicle handle
- Result:
- 1@
- Returns true or false.
- Example:
- 0AB1: call_scm_func @Get_vehicle_door_state 1 car_handle 4@ store_state_to 5@
- }
- 0A97: 1@ = car 0@ struct
- 1@ += 1272 // This is memory adress. Car struct (specified car) + 1272 is adress of door state.
- // Found on http://www.gtamodding.com/index.php?title=Memory_Addresses_(SA)
- 0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
- 0AB2: ret 1 1@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement