About outlaw alert for police

I have a outlaw alert script and in the script if I steal a car from driving npc I get alert but if I stole a parked car I dont get any alert

local playerPed = PlayerPedId()
local playerCoords = GetEntityCoords(playerPed)

if (IsPedTryingToEnterALockedVehicle(playerPed) or IsPedJacking(playerPed)) then

Someone can tell me why I dont get any alert when I steal a parked car

Not going to assume, but this is what I found: [Release] Simple outlaw alert (11-04-2017). I would check the comments, someone mentioned they had a very similar issue.