mtasa-resources icon indicating copy to clipboard operation
mtasa-resources copied to clipboard

Update race_client.lua

Open Santiii733 opened this issue 10 months ago • 1 comments

Fixed checkpoints problem from specting mode.

Fixed code by robson from MTA Race community

Santiii733 avatar Mar 01 '25 19:03 Santiii733

Fixed checkpoints problem from specting mode.

What does this mean? Can you describe the problem you're trying to fix?

Aside from that, the suggested changes are a little odd; a function definition which is never used, accessing table indexes without verifying they exist, and commented out code - please refer to the code review comments.

The issue is about the destroyElement error warning in blips on debugscript, which occurs when you are respawning back into the race or spectating a player.

Layers that you should test the both codes at online races and check it

Santiii733 avatar Mar 05 '25 00:03 Santiii733

if isElement(blip3.blip2) then if blip3.blip2 then

This code is bad, so I don't trust any of the other code to be good, especially when the author hasn't described the changes clearly.

ArranTuna avatar Sep 20 '25 13:09 ArranTuna