addEventHandler ( 'onPlayerWeaponSwitch',root,
function ( _,aMyWeapon )
local curWeapon = getPedWeapon(source)
if isElementWithinColShape( source, zone1 ) and curWeapon == 38 then
toggleControl( source,'fire',false )
outputChatBox ( "You Can not use This Weapon in this Event", source, 255, 100, 0,true )
else
toggleControl( source,'fire',true )
end
end
)
Give this a try