Difference between revisions of "0518"

From GTAMods Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
| description = Creates a forsale property [[pickup]]
 
| description = Creates a forsale property [[pickup]]
 
| syntax1    = 0518: [''var''] = create_available_asset_pickup '[''string'']' at [''flt1''] [''flt2''] [''flt3''] price [''int'']
 
| syntax1    = 0518: [''var''] = create_available_asset_pickup '[''string'']' at [''flt1''] [''flt2''] [''flt3''] price [''int'']
| p1t        = [''var'']
+
| p1t        = [''string'']
| p1d         = Variable to store the handle of the pickup
+
| p1d        = [[GXT]] key
| p2t        = [''string'']
+
| p2t         = [''flt1'']
| p2d         = [[GXT]] key
+
| p2d         = X-coordinate
| p3t         = [''flt1'']
+
| p3t         = [''flt2'']
| p3d         = X-coordinate
+
| p3d         = Y-coordinate
| p4t         = [''flt2'']
+
| p4t         = [''flt3'']
| p4d         = Y-coordinate
+
| p4d         = Z-coordinate (or ≤''-100.0'' for [[02CE|ground z]] + 0.5 units)
| p5t         = [''flt3'']
+
| p5t         = [''int'']
| p5d         = Z-coordinate (or ≤''-100.0'' for [[02CE|ground z]] + 0.5 units)
+
| p5d         = Price of property
| p6t         = [''int'']
+
| p6t        = [''var'']
| p6d         = Price of property
+
| p6d        = Variable to store the handle of the pickup
 
}}
 
}}
  

Revision as of 00:47, 20 November 2016

0518 pickup in Vice City

Vice City San Andreas CREATE_FORSALE_PROPERTY_PICKUP


Description
Creates a forsale property pickup
Syntax
0518: [var] = create_available_asset_pickup '[string]' at [flt1] [flt2] [flt3] price [int]
Parameter
[string]
GXT key
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate (or ≤-100.0 for ground z + 0.5 units)
[int]
Price of property
[var]
Variable to store the handle of the pickup

This opcode creates a type 18 forsale property pickup. It uses the property_fsale DFF model. Walking over the pickup displays a help message using the set GXT key. You can interact with it by pressing the Action button. If you have enough money and the mission flag is not set, money is subtracted from you and the pickup is picked up. If you do not have enough money, a help message with GXT key PROP_1 ("You don't have enough cash for this property") is displayed. If the mission flag is set, a help message with GXT key PROP_2 ("You cannot buy property whilst on a mission") is displayed.

Keywords

create, for, sale, forsale, property, available, asset, pickup