altmp / altv-issues

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

drawSphere native only draws one sphere per frame #1236

Open cptprice1139 opened 2 years ago

cptprice1139 commented 2 years ago

Description of the problem

If you use the native (drawSphere) twice or more in an every tick or interval, only one of the number of spheres is being rendered in the current frame. As far as I know, it was only the last one (in the code), which was rendered.

Reproduction steps

alt.everyTick(() => {
    native.drawSphere(0, 0, 72, 0.08, 0, 0, 255, 255);
    native.drawSphere(1, 0, 72, 0.08, 0, 0, 255, 255);
});

First sphere is not rendered.

Expected behaviour

Both spheres should be rendered.

Additional context

No response

Operating system

Windows 10

Version

7.1 release

ThomasMarangoni commented 2 years ago

Does it work in another mp mod or singleplayer?

cptprice1139 commented 2 years ago

I read that isn't working on fivem, though when I tried in sp it worked.