altmp / altv-issues

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

Add api to create vehicles on client without natives #1704

Open ghost opened 1 year ago

ghost commented 1 year ago

Description of the problem

Add api to create vehicles on client without natives, it will help to work with vehicles on client. The functionality of the transport created by natives is very limited due to the fact that most of the code is tied to api alt.Vehicle (because this is how we process the transport created on the backend)

Desired solution for the problem

new alt.Vehicle(model, posX, posY, posZ, rotX, rotY, rotZ);

Alternatives you considered

No response

Additional context

No response

Version

No response

CsokiHUN commented 1 year ago

I think it's better to use vectors.

new alt.Vehicle(model: string|number, pos: alt.Vector3, rot: alt.Vector3)
ZackaryH8 commented 1 year ago

I think it's better to use vectors.

new alt.Vehicle(model: string|number, pos: alt.Vector3, rot: alt.Vector3)

There should be an overload like how it is on Server

yannbcf commented 1 year ago

Imo this is very low priority as:

ghost commented 1 year ago

@yannbcf This is needed to work with the alt.Vehicle api, which is used to work with vehicles on the backend, but which will not work with native vehicles. Such things have been implemented on RAGE MP for a long time and they are not enough here.

xxshady commented 1 year ago

Such things have been implemented on RAGE MP for a long time and they are not enough here.

@Serske I doubt clientside vehicle API in ragemp is implemented directly via engine as it has been there since the earliest versions