View Issue Details

IDProjectCategoryView StatusLast Update
0004525Multi Theft Auto : San AndreasScriptingpublic2010-04-02 23:16
ReporterrobholAssigned ToFlobu 
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product Version 
Target Version1.0.4Fixed in Version1.0.4 
Summary0004525: Request: getVehiclePassengers()
Description

Function prototype:
table getVehiclePassengers(vehicle)

As it is now, people have to loop through an often unknown amount of seats in any vehicle.

TagsNo tags attached.

Relationships

related to 0004659 closed Source patches Patch for #4525 (getVehiclePassengers) 
child of 0003344 closed New Feature Requests Requested features tracker 

Activities

Arc

2009-06-26 18:13

administrator   ~~0009754

http://development.mtasa.com/index.php?title=GetVehicleMaxPassengers

robhol

2009-06-26 18:14

reporter   ~~0009755

Not what I asked for.

onestone

2009-07-03 16:08

viewer   ~~0009871

Why is there an unknown amount of vehicle seats? arc_ gave you a function which returns the seats.
And why should it be implemented when you could easily script that (http://mta.pastebin.com/m10b9e052)?

Talidan

2009-07-03 19:21

administrator   ~~0009872

Convenience. The passenger retrieval functions were designed fairly early on, before we started having more table functions.

A [seatnumber] = player table (not array) would be much easier to use. In that sense, im in favour of such a function.

jhxp

2010-03-17 11:33

administrator   ~~0011173

http://github.com/multitheftauto/multitheftauto/commit/7ee019ba4d762f7b5109a1cdfc7e241f1692eb84

Issue History

Date Modified Username Field Change