-
Posts
4,961 -
Joined
-
Last visited
Everything posted by Jaysds1
-
Here's one: https://community.multitheftauto.com/in ... ils&id=632
-
Try reinstalling your GTA and MTA and then try launching MTA again. If it still doesn't work, then please download and run this MTADiag, after post the generated PasteBin URL here.
-
Can you download and run this MTADiag then post the generated PasteBin url here please.
-
Sorry, but it seems like you're rushing this or you don't know lua...
-
He wants us to post the code here for him.
-
it's this: https://forum.multitheftauto.com/viewto ... 35#p528608
-
Hey, welcome to MTA:SA You could do the following things with MTA, but all of it would need to be scripted... Of course we have resources/scripts already out with those, but they don't have the reactions attached. But if you learn Lua/scripting then you could add these little adjustments. Peds: http://crystalmv.net84.net/pages/scripts.php#npc_hlc Vehicles: http://crystalmv.net84.net/pages/script ... lc_traffic
-
http://www.callofduty.com/______ Put your photo up on the Mosaic!!! More Details: --By Tmartn IGN Ghosts Page: http://www.ign.com/wikis/call-of-duty...
-
Ok, I've edited it my self and found out what the problem was... The minigun was going through the helicopter's wing and artillery things and it automatically blocks the minigun/weapon from shooting... try this: local miniguns = {} local miniSound addEventHandler("onClientVehicleEnter", root,function(_, seat) if seat~=0 and getElementModel(source)~=425 then return end local x, y, z = getElementPosition (source) miniguns[1] = createWeapon ( "minigun", x, y, z ) miniguns[2] = createWeapon ( "minigun", x, y, z ) miniguns[3] = createWeapon ( "minigun", x, y, z ) miniguns[4] = createWeapon ( "minigun", x, y, z ) for _,minigun in ipairs(miniguns)do setElementAlpha(minigun,255) end attachElements ( miniguns[1], source, 2.15, 0.5, -1.2, 45, 0, 90 ) attachElements ( miniguns[2], source, -2.10, 0.5, -1.2, 45, 0, 90 ) attachElements ( miniguns[3], source, 2.57, 0.5, -1.1, 45, 0, 90 ) attachElements ( miniguns[4], source, -2.52, 0.5, -1.1, 45, 0, 90 ) toggleControl ( "vehicle_fire", false ) toggleControl ( "vehicle_secondary_fire", false ) addEventHandler("onClientPreRender",root,fire) end) addEventHandler("onClientVehicleExit",root,function(_, seat) if seat~=0 and getElementModel(source)~=425 then return end for _,minigun in ipairs(miniguns)do destroyElement(minigun) end toggleControl ( "vehicle_fire", true ) toggleControl ( "vehicle_secondary_fire", true ) removeEventHandler("onClientRender",root,fire) end) function fire() if getKeyState("n")then for _,minigun in ipairs(miniguns)do if not isElement(minigun) then return end fireWeapon(minigun) end miniSound = playSound("Pro_Minigun.wav", true) or false setSoundVolume(miniSound, 1) setSoundSpeed ( miniSound, 1 ) setSoundEffectEnabled(miniSound,"gargle",false) else stopSound(miniSound) end end
-
try this: local miniguns = {} local miniTimers = {} local miniSound addEventHandler("onClientVehicleEnter", root,function(_, seat) if seat~=0 and getElementModel(source)~=425 then return end local x, y, z = getElementPosition (source) miniguns[0] = createWeapon ( "minigun", x, y, z ) miniguns[1] = createWeapon ( "minigun", x, y, z ) miniguns[2] = createWeapon ( "minigun", x, y, z ) miniguns[3] = createWeapon ( "minigun", x, y, z ) for _,minigun in ipairs(miniguns)do setElementAlpha(minigun,255) end attachElements ( miniguns[0], source, 2.15, 0.5, -1.2, 0, 0, 90 ) attachElements ( miniguns[1], source, -2.10, 0.5, -1.2, 0, 0, 90 ) attachElements ( miniguns[2], source, 2.57, 0.5, -1.1, 0, 0, 90 ) attachElements ( miniguns[3], source, -2.52, 0.5, -1.1, 0, 0, 90 ) toggleControl ( "vehicle_fire", false ) toggleControl ( "vehicle_secondary_fire", false ) bindKey ( "n", "down", fire ) bindKey ( "n", "up", fire ) end) addEventHandler("onClientVehicleExit",root,function(_, seat) if seat~=0 and getElementModel(source)~=425 then return end for _,minigun in ipairs(miniguns)do if not isElement(minigun) then return end destroyElement(minigun) end toggleControl ( "vehicle_fire", false ) toggleControl ( "vehicle_secondary_fire", false ) unbindKey ( "n", "down", fire ) unbindKey ( "n", "up", fire ) end) function fire(_,kState) if kState=="down" then for _,timer in ipairs(miniTimers)do if not isTimer(timer) then return end for _,minigun in ipairs(miniguns)do if isElement(minigun) then killTimer(timer) else setTimer(setWeaponState,50,1,minigun,"firing") -miniSound = playSound("Pro_Minigun.wav", true) or false setSoundVolume(miniSound, 1) setSoundSpeed ( miniSound, 1 ) setSoundEffectEnabled(miniSound,"gargle",false) end end end elseif kState=="up" then for _,timer in ipairs(miniTimers)do if not isTimer(timer) then return end for _,minigun in ipairs(miniguns)do if isElement(minigun) then killTimer(timer) else setTimer(setWeaponState,50,1,minigun,"ready") stopSound(miniSound) end end end end end
-
try this: local SFAirport1Gate54 = createObject ( 3115, -267.79998779297, 3050.6999511719, 103.59999847412, 0, 0, 1.99951171875 ) addCommandHandler("open",function() moveObject ( SFAirport1Gate54, 5000, -267.79998779297, 3050.6999511719, 118.09999847412 ) end) addCommandHandler("close",function() moveObject ( SFAirport1Gate54, 5000, -267.79998779297, 3050.6999511719, 103.59999847412 ) end)
-
I think it's enabled again if it's on client-side. Try disabling it on server-side.
-
I don't think it's suppose to be enabled again. Haven't really tried that. I think it depends on which side you use the toggleControl.
-
Sorry, but can you post the code using these: [xml][/xml] .
-
Try this: local miniguns = {} local miniTimers = {} local miniSound addEventHandler("onClientVehicleEnter", root,function(_, seat) if seat ~= 0 and getElementModel(source) ~= 425 then return end local x, y, z = getElementPosition ( source ) miniguns[0] = createWeapon ( "minigun", x, y, z ) miniguns[1] = createWeapon ( "minigun", x, y, z ) miniguns[2] = createWeapon ( "minigun", x, y, z ) miniguns[3] = createWeapon ( "minigun", x, y, z ) for _,v in ipairs(miniguns)do setElementAlpha(v,255) end attachElements ( miniguns[0], source, 2.15, 0.5, -1.2, 0, 0, 90 ) attachElements ( miniguns[1], source, -2.10, 0.5, -1.2, 0, 0, 90 ) attachElements ( miniguns[2], source, 2.57, 0.5, -1.1, 0, 0, 90 ) attachElements ( miniguns[3], source, -2.52, 0.5, -1.1, 0, 0, 90 ) toggleControl ( "vehicle_fire", false ) toggleControl ( "vehicle_secondary_fire", false ) bindKey ( "n", "down", fire ) bindKey ( "n", "up", fire ) end) addEventHandler("onClientVehicleExit",root,function(_, seat) if seat ~= 0 and getElementModel(source) ~= 425 then return end for _,v in ipairs(miniguns)do if not v then return end destroyElement(v) end toggleControl ( "vehicle_fire", false ) toggleControl ( "vehicle_secondary_fire", false ) unbindKey ( "n", "down", fire ) unbindKey ( "n", "up", fire ) end) function fire(_,kState) if kState=="down" then for _,v in ipairs(miniTimers)do if not isTimer(v) then return end for _,i in ipairs(miniguns)do if i then killTimer(v) else setTimer(setWeaponState,50,1,i,"firing") miniSound = playSound("Pro_Minigun.wav", true) setSoundVolume(miniSound, 1) setSoundSpeed ( miniSound, 1 ) setSoundEffectEnabled(miniSound,"gargle",false) end end end elseif kState=="up" then for _,v in ipairs(miniTimers)do if not isTimer(v) then return end for _,i in ipairs(miniguns)do if i then killTimer(v) else setTimer(setWeaponState,50,1,i,"ready") stopSound(miniSound) end end end end end
-
1) and 3) These resources is outdated. 2) Post the meta.xml of the resource that couldn't be started.
-
ok, Download these first: Install the latest DirectX runtimes Visual C++ 2008 SP1 runtimes After you finish downloading those, restart your computer. When it's finished being restarted, download and run the MTADiag, and if it works then post the generated PasteBin url here. If it doesn't, then uninstall MTADiag and MTA:SA via Add or Remove Programs. When you done all of these, install them again, and see if they work.
-
I have a question
Jaysds1 replied to SnackKracker101's topic in Site/Forum/Discord/Mantis/Wiki related
Wrong topic/forum, either way Can you download and run this MTADiag then post the generated PasteBin url here pls.