@IIYAMAthank you so much, it works good ! Here is the code, maybe you want to see. Thank you !
function shootMissiles()
thePilot = getLocalPlayer()
theVehicle = getPedOccupiedVehicle(thePilot)
if theVehicle and getElementType(theVehicle) == 'vehicle' then
theVehicleModel = getElementModel(theVehicle)
if theVehicleModel == 519 then
local x1, y1, z1 = getPositionFromElementOffset(theVehicle, -3, 3.5, 0)
local x2, y2, z2 = getPositionFromElementOffset(theVehicle, 3, 3.5, 0)
missileLeft = createProjectile(theVehicle, 19, x1, y1, z1)
missileRight = create