فلانتينو جرب وكودك وشوف الدي بوق .
الكود الصحيح + المجرب :
addEventHandler("onResourceStart",resourceRoot, function ( )
for i,v in ipairs ( getElementsByType("player") ) do
if ( getPedOccupiedVehicle ( v ) and getElementModel ( getPedOccupiedVehicle ( v ) ) == 425 ) then
toggleControl ( v , "vehicle_secondary_fire" , false )
end
end
end );
addEventHandler("onVehicleStartEnter",root, function ( Player , Seat )
if ( getElementModel ( source ) == 425 and Seat == 0 ) then
toggleControl ( Player , "vehicle_secondary_fire" , false )
end
end );
addEventHandler("onVehicleStartExit",root, function ( Player , Seat )
if ( getElementModel ( source ) == 425 and Seat == 0 ) then
toggleControl ( Player , "vehicle_secondary_fire" , true )
end
end );