Check doesPlayerHaveLiceForVehicle function.
setElementData(localPlayer, "carLicence", false)
setElementData(localPlayer, "planeLicence", false)
setElementData(localPlayer, "chopperLicence", false)
setElementData(localPlayer, "bikeLicence", false)
setElementData(localPlayer, "boatLicence", false)
This should remove local player's licenses.