altmp / altv-issues

Issues and roadmap for alt:V project
93 stars 16 forks source link

Add more properties to vehicle #2150

Open mrgharabaghi opened 9 months ago

mrgharabaghi commented 9 months ago

Description of the problem

For racing events, we need to have more control over vehicles on the server/client side. There are many useful properties in this link that help us to have more control over vehicles. I've listed the most useful ones below.

Updated:

SET_VEHICLE_AUTO_REPAIR_DISABLED
GET_ | SET_:  VEHICLE_WHEEL_BRAKE_PRESSURE
GET_ | SET_:  VEHICLE_WHEEL_POWER
GET_ | SET_:  VEHICLE_WHEEL_IS_POWERED
GET_ | SET_:  VEHICLE_GEAR_RATIO
GET_ | SET_:  VEHICLE_SUSPENSION_HEIGHT
GET_ | SET_:  VEHICLE_CLUTCH
GET_ | SET_:  VEHICLE_NEXT_GEAR
GET_ | SET_:  VEHICLE_TURBO_PRESSURE
GET_ | SET_:  VEHICLE_ALARM_TIME_LEFT
GET_ | SET_:  VEHICLE_GRAVITY_AMOUNT
GET_ | SET_:  FUEL_CONSUMPTION_STATE
GET_ | SET_:  FUEL_CONSUMPTION_RATE_MULTIPLIER
IS_VEHICLE_ENGINE_STARTING
DOES_VEHICLE_USE_FUEL
GET_VEHICLE_DRAWN_WHEEL_ANGLE_MULT
GET_VEHICLE_WHEEL_SPEED
GET_VEHICLE_THROTTLE_OFFSET
GET_VEHICLE_HANDBRAKE
GET_VEHICLE_DASHBOARD_WATER_TEMP
GET_VEHICLE_DASHBOARD_OIL_PRESSURE
GET_VEHICLE_DASHBOARD_OIL_TEMP
GET_VEHICLE_DASHBOARD_LIGHTS

Desired solution for the problem

Same as setWheelCamber.

Alternatives you considered

No response

Additional context

No response

BluePeer commented 9 months ago

SET_VEHICLE_HIGH_GEAR/get (if i understand that value right) are the initial gear value of (handling) change this live is bad for the physics vehicle.gear get the current and can set the current gear without change the gear range with vehicle.rpm you have a AAA control of that stuff.

(related to HIGH_GEAR NEXT_GEAR)