@TrundleTheGreat I suggest adding this to one of the functions so that players can simply hit X to cancel any animation thats going instead of having to type out /e <animation>
again.
local cancelAnimation = 73 -- X by default
-- cancel animations
if (IsControlJustPressed(0,cancelAnimation)) then
local ped = PlayerPedId()
if ( DoesEntityExist( ped ) and not IsEntityDead( ped ) ) then
radioActive = false
ClearPedSecondaryTask(ped)
DetachEntity(prop, 1, 1)
DeleteObject(prop)
DetachEntity(secondaryprop, 1, 1)
DeleteObject(secondaryprop)
end
end