You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
For now, there are four get/set functions regarding vehicle damage indicators, which arguments/returns are inconsistent with each other. Light, door and panel functions require passing an ID of the thing in question, while wheels functions take four states as arguments and return four states.
Describe the solution you'd like
Consider making all of them in two flavors, which would be :
Getters:
intgetVehicleThingState ( vehicletheVehicle, intthingID ) -- return state of thing by its IDint, int, (...), intgetVehicleThingStates ( vehicletheVehicle ) -- return states of all things
Setters:
boolsetVehicleThingState ( vehicletheVehicle, intthingID, intstate) -- change state of one thingboolsetVehicleThingStates ( vehicletheVehicle, intstate, intstate, ... ) -- change states of all things
Another option would be making both types under one function name and returning values according to number of arguments passed. For backwards-compatibility with setVehicleWheelStates those would have to end with singular state.
Describe alternatives you've considered
Other option would be to implement new functions for wheel state:
Is your feature request related to a problem? Please describe.
For now, there are four get/set functions regarding vehicle damage indicators, which arguments/returns are inconsistent with each other. Light, door and panel functions require passing an ID of the thing in question, while wheels functions take four states as arguments and return four states.
Describe the solution you'd like
Consider making all of them in two flavors, which would be :
Another option would be making both types under one function name and returning values according to number of arguments passed. For backwards-compatibility with
setVehicleWheelStates
those would have to end with singular state.Describe alternatives you've considered
Other option would be to implement new functions for wheel state:
This would also be backwards-compatible, as the current functions' names end with plural states.
Of course this whole issue is a minor thing.
Additional context
Links to said functions in MTA wiki:
https://wiki.multitheftauto.com/wiki/GetVehicleLightState
https://wiki.multitheftauto.com/wiki/GetVehicleDoorState
https://wiki.multitheftauto.com/wiki/GetVehiclePanelState
https://wiki.multitheftauto.com/wiki/GetVehicleWheelStates
https://wiki.multitheftauto.com/wiki/SetVehicleLightState
https://wiki.multitheftauto.com/wiki/SetVehicleDoorState
https://wiki.multitheftauto.com/wiki/SetVehiclePanelState
https://wiki.multitheftauto.com/wiki/SetVehicleWheelStates
The text was updated successfully, but these errors were encountered: