-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathtypes.lua
186 lines (167 loc) · 4.49 KB
/
types.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
---@meta
--[[
This file is only used for type annotations, no actual code will be written here.
When adding new functions or variables to classes, make sure to also add them in this file.
]]
---@class Property
---@field id integer
---@field model string
---@field shellData table
---@field entranceLocation vector4
---@field propertyType PropertyType
---@field address Address
---@field bucketId integer
---@field props table
---@field keys table
---@field links table
---@field players table
---@field vehicles table
---@field isSpawning boolean
---@field isSpawned boolean
---@field isSpawningVehicles boolean
---@field vehiclesSpawned boolean
---@field location vector3
---@field entity Entity
---@field saleData table?
---@field rentData table?
---@field destroyModel function
---@field spawnModel function
---@field destroyProps function
---@field spawnProps function
---@field loadProps function
---@field addProp function
---@field removeProp function
---@field loadKeys function
---@field getPlayerKey function
---@field givePlayerKey function
---@field removePlayerKey function
---@field removeAllKeys function
---@field loadVehicleData function
---@field spawnVehicle function
---@field spawnVehicles function
---@field spawnOutsideVehicle function
---@field destroyVehicles function
---@field getFirstFreeVehicleSlot function
---@field enter function
---@field exit function
---@field loadLinks function
---@field getPlayer function
---@field isPlayerInside function
---@field save function
---@field destroy function
---@field getData function
---@field getOutsidePlayers function
---@field knock function
---@field loadTransactions function
---@field isForSale function
---@field isForRent function
---@field buy function
---@field rent function
---@field triggerUpdate function
---@field markForSale function
---@field markForRent function
---@class NewPropertyData
---@field location vector4
---@field model string
---@field propertyType string
---@field zipcode string
---@field streetName string
---@field buildingNumber number
---@class Address
---@field zipcode string?
---@field streetName string?
---@field buildingNumber string?
---@class PropertyData
---@field id integer
---@field entranceLocation vector4
---@field location vector3
---@field propertyType PropertyType
---@field address Address
---@field model string
---@field keys table
---@field key? Key
---@field links table
---@field saleData table
---@field isForSale boolean
---@field rentData table
---@field isForRent boolean
---@field props table
---@class Prop
---@field id integer
---@field property Property
---@field model string
---@field location vector3
---@field rotation vector3
---@field metadata table
---@field _metadata table
---@field spawn function
---@field destroy function
---@field getData function
---@field metadataAPI function
---@class PropData
---@field id string
---@field name string
---@field price number
---@class Key
---@field id integer?
---@field propery_id integer
---@field permission Permissions
---@field player string
---@class Player
---@field source integer
---@field identifier string
---@field name string
---@field property Property
---@field key table
---@field setBucket function
---@field ped function
---@field vehicle function
---@field warpIntoProperty function
---@field warpOutOfProperty function
---@field triggerFunction function
---@field freeze function
---@field getMoney function
---@field removeMoney function
---@class Keybind
---@field padIndex integer
---@field control integer
---@field name string
---@class Point
---@field viewDistance number
---@field interact Keybind
---@field marker Marker
---@class Marker
---@field type integer
---@field size vector3
---@field vehicleSize number?
---@field offset vector3
---@field rotation vector3
---@field color table
---@field bob boolean
---@field faceCamera boolean
---@class Outline
---@field color table?
---@field shader number?
---@class Blip
---@field sprite integer
---@field color integer
---@field short boolean?
---@field display integer?
---@field scale number?
---@class PropertyBlips
---@field owner Blip
---@field member Blip
---@field renter Blip
---@field sale Blip
---@class VehicleSlot
---@field id? integer
---@field location vector4
---@class PropMetadataAPI
---@field get fun(key: string)
---@field set fun(key: string, value: any)
---@field clear fun()
---@field getPrivate fun(key: string)
---@field setPrivate fun(key: string, value: any)
---@field clearPrivate fun()
---@alias Entity number
---@alias SpecialPropEventHandler string | table<string>