-stolka- Posted October 12, 2013 Share Posted October 12, 2013 is there anyonewho have a working link for the resource patriot minigun Link to comment
-Bane- Posted October 13, 2013 Share Posted October 13, 2013 /trash Why? Is this your crusade against Stolka? Link to comment
iPrestege Posted October 14, 2013 Share Posted October 14, 2013 Where's that resource anyways? Have you take a look in the mta community? Link to comment
yvadfulck Posted October 19, 2013 Share Posted October 19, 2013 i let it remove from the community its simple infact just attach a rc to a minigun element you want it ====> pm me Link to comment
DanHR Posted October 19, 2013 Share Posted October 19, 2013 i let it remove from the communityits simple infact just attach a rc to a minigun element you want it ====> pm me If you are going to do it, let me give this idea: The RC and the patriot share the same health Link to comment
yvadfulck Posted October 22, 2013 Share Posted October 22, 2013 this is the actual code from my community script function mountminigun ( pla, dim ) if not isPedInVehicle(pla)then local mountedgun=getElementData(pla,"mountedgun") if mountedgun then local x,y,z=getElementPosition(pla) local xx,yy,zz=getElementRotation(pla) setElementPosition(mountedgun,x,y+2,z-1) setElementRotation(mountedgun,xx,yy,zz+90) else local x,y,z=getElementPosition(pla) local xx,yy,zz=getElementRotation(pla) local mountgun = createObject(2985, x,y+2, z-1,0,0,0) local miniggun1 = createVehicle(464, 0, 0, 0) local serial = getPlayerSerial(pla) setElementRotation(mountgun,xx,yy,zz+90) setElementData(pla,"mountedgun",mountgun) setElementData(pla,"mountedgun2",miniggun1) setElementData(mountgun,"doel","mountedgun") setVehicleVariant ( miniggun1, 601 , 601 ) setVehicleDamageProof ( miniggun1, true ) setElementCollisionsEnabled(mountgun, false) setVehicleEngineState ( miniggun1, false ) attachElements( miniggun1, mountgun, -0.4, 0, 1.1, 0, 0, -90 ) setElementAlpha(miniggun1, 0) end end if isPedInVehicle(pla)then local zitin=getElementModel(getPedOccupiedVehicle(pla)) if (zitin == 441)or(zitin == 464)or(zitin == 501)or(zitin == 465)or(zitin == 564)then cancelEvent() else local mountedgun=getElementData(pla,"mountedgun") if mountedgun then local heeftal=getElementData(getPedOccupiedVehicle(pla),"ismounted") if not heeftal then attachElements( mountedgun, getPedOccupiedVehicle(pla), 0, 0, 0.5, 0, 0, 90 ) setElementData(pla,"ismounted",getPedOccupiedVehicle(pla)) setElementData(getPedOccupiedVehicle(pla),"ismounted",pla) end end end end end function mmmgleft(pla) if isPedInVehicle(pla)then local mountedgun=getElementData(pla,"mountedgun") local ismounted=getElementData(pla,"ismounted") if mountedgun then local x,y,z=getElementPosition(mountedgun) local xx,yy,zz=getElementRotation(mountedgun) setElementRotation(mountedgun,xx,yy,zz-10) end end end function mmmgright(pla) if isPedInVehicle(pla)then local mountedgun=getElementData(pla,"mountedgun") local ismounted=getElementData(pla,"ismounted") if mountedgun then local x,y,z=getElementPosition(mountedgun) local xx,yy,zz=getElementRotation(mountedgun) setElementRotation(mountedgun,xx,yy,zz+10) end end end function mmmgleft2(pla) if isPedInVehicle(pla)then local mountedgun=getElementData(pla,"mountedgun") if mountedgun then local ismounted=getElementData(pla,"ismounted") if ismounted then local xx,yy,zz=getElementRotation(mountedgun) attachElements( mountedgun, ismounted, 0, 0, 0.5, 0, 0,zz+10) end end end end function mmmgright2(pla) if isPedInVehicle(pla)then local mountedgun=getElementData(pla,"mountedgun") if mountedgun then local ismounted=getElementData(pla,"ismounted") if ismounted then local xx,yy,zz=getElementRotation(mountedgun) local xxx,yyy,zzz=getElementRotation(ismounted) local test=(zz-zzz) attachElements( mountedgun, ismounted, 0, 0, 0.5, 0, 0,zz -10) end end end end addEventHandler ("onPlayerQuit", getRootElement(), function(quitType, reason, responsibleElement) if (getElementData (source, "mountedgun")) then local mountedgun=getElementData(source,"mountedgun") local mountedgun2=getElementData(source,"mountedgun2") destroyElement (mountedgun) destroyElement (mountedgun2) removeElementData (source, "mountedgun") removeElementData (source, "mountedgun2") removeElementData (source, "ismounted") end end) addEventHandler( "onResourceStop", getResourceRootElement( getThisResource() ), function () for i,v in ipairs (getElementsByType ("player")) do if (getElementData (v, "mountedgun")) then removeElementData (v, "ismounted") removeElementData (v, "mountedgun") end end end ) addEventHandler( "onResourceStart", getResourceRootElement( getThisResource() ), function () for i,v in ipairs (getElementsByType ("player")) do if (getElementData (v, "mountedgun")) then removeElementData (v, "ismounted") removeElementData (v, "mountedgun") end end end ) addEventHandler("onPlayerLogin", root, function(_, account) bindKey (source,"u", "up", mountminigun) bindKey (source,"k", "down", mmmgright) bindKey (source,"l", "down", mmmgleft) bindKey (source,"j", "down", mmmgright2) bindKey (source,"h", "down", mmmgleft2) end ) have fun... Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now