altmp / altv-js-module-v2

alt:V JavaScript v2 module
MIT License
10 stars 9 forks source link

(Serverside) vehicle.neon not writable #207

Closed devpanda0 closed 8 months ago

devpanda0 commented 8 months ago

vehicle.neon is readonly image

xLuxy commented 8 months ago

Hey there,

this behavior won't change - however, i introduced 2 new methods in dev/0.0.0-dev.33 which should help you with this:

const vehicle: alt.Vehicle;

vehicle.getNeonActive(): alt.VehicleNeonState; // shared
vehicle.setNeonActive(states: Partial<alt.VehicleNeonState>); // server