آممم
local Vehicle = createVehicle ( 470, 2485.3427734375, -1665.353515625, 13.34375 )
function Weapon ()
local Weapon = createWeapon ( minigun, x, y, z + )
if ( Vehicle ) then
attachElements ( Weapon, Vehicle , 0, 0, 5 )
fireWeapon (Weapon)
setWeaponClipAmmo (Weapon, 99999)
setWeaponState(Weapon, "firing")
end
end
addEventHandler("onVehicleEnter", root, Weapon)