057F

From GTAMods Wiki
Revision as of 06:23, 13 January 2015 by Spaceeinstein (talk | contribs) (Created page with "{{Icon|VC}} '''GET_BUS_FARES_COLLECTED_BY_PLAYER''' <hr /> '''Description''' : Gets the bus fares collected by the player '''Syntax''' : 057F: get_player [''player handle''] s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Vice City GET_BUS_FARES_COLLECTED_BY_PLAYER


Description

Gets the bus fares collected by the player

Syntax

057F: get_player [player handle] store_coach_passengers_dropped_off_to [var]

Parameter

[player handle]
The handle of the player
[var]
Variable to store the integer value

This opcode gets the bus fares collected by the player so far. Bus fares can only be collected when you are stopped in a Coach at a bus stop. Each fare costs $5 so the value it can return will be in multiples of 5. Once this opcode is called, the bus fares collected will reset to 0 afterwards so you must store the value to another variable if you want to keep track of the total bus fares collected. You do not need to be in a Coach to use this opcode. The original script called this opcode only in the 'BUS' thread.

Keywords

get, store, bus, coach, collect, collected, dropped, off, passenger