Help with stolen car alert system

I’m having trouble getting my alert system to show when a parked car is being stolen.
I’m using this command to trigger the alert:
if IsPedTryingToEnterALockedVehicle(GetPlayerPed(-1)) then

^^is that still the command to use when someone is trying to steal a parked car?
It’s the only alert I can’t get to show up on my server, IsPedJacking alerts fine unless the car is parked.

If you want me to post the client/server code let me know.
thanks

I wanted to know where I put this code to take this warning system would look great in vrp on my server

I modified a version of this script