This repository has been archived as RAGEMP platform has recently announced its closure following a Rockstar Games Cease and Desist letter. (RAGEMP Forum)
This script stops the client from breaking car windows while trying to enter a car that gets unlocked mid-animation.
GTAV has a default behavior where any player trying to enter a locked vehicle will smash its windows. In RAGEMP, this becomes a problem when using custom door lock scripts. If a player tries to enter a locked vehicle and the vehicle gets unlocked mid-animation, the player will still smash the windows and stand still outside the now-unlocked vehicle.
The script detects that specific sync situation and instantly stops the task of smashing the car window. The player won't be able to see any strange movement or animation when that happens.