#MacTavish

Members
  • Content Count

    18
  • Joined

  • Last visited

Community Reputation

2 Neutral

About #MacTavish

  • Rank
    Square
  • Birthday 02/01/1998

Details

  • Occupation
    Soldier-Special Forces

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. hi all, i created a script that works for shooting other vehicles with heatseeking rockets by Hunter Helicopter. But i can shoot other vehicles if they are on my screen, so i can shoot other vehicles even they are behind of hunter helicopter and this is unrealistic. I want to make it realistic, so, i want to shoot other vehicles if they are only on Helicopters' perspective even when i don't look at them, here is the script, please help ; function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle and getElementModel(vehicle) == 425 then local x, y, z = getElementPosition(getLocalPlayer()) local vehicles = getElementsWithinRange(x, y, z, 300, "vehicle") local target = vehicles[1] ~= vehicle and vehicles[1] or vehicles[2] if target and isElementOnScreen(target) then createProjectile(vehicle, 20, x, y, z, 1, target) end end end bindKey( "lshift", "down", shootProjectile)
  2. If you have this source can u share it with me please im looking for it long time
  3. Hi all, i want to fly with SeaSparrow helicopter flexible as Hunter Helicopter (because Hunter helictoper can flip around itself and move fastly) , so i tried to set Hunters' handling settings on SeaSparrow heli. But it doesn't work (i got any error btw), help please, thanks, here is the script; function getModelHandling( element, property ) if isElement ( element ) and getElementsByType ( element ) == "vehicle" and type ( property ) == "string" then local SparrowID = 447 local modelID = 425 local handlingTable = getModelHandling ( modelID ) local value = handlingTable[property] if value then for k,_ in pairs(value(modelID)) do setModelHandling(447, k, value) end end end return false end
  4. Hi all, i have a question about modelling. I have a vehicle model' dff and txd files. Is it possible to create .col file by using these dff and txd files? If its possible then how? Thank you
  5. Thank you TUT ! This is what i was searching for ! Nice information ! ❤️
  6. Hi all, firstly happy new year! I want to ask that is there a way to get original txd, dff, col files of original GTA models? Is there a program or function for it? Thank you..
  7. Im really thankful to you Bilal135, you are really helpful and good person ! Thank you
  8. Thank you so much Bilal135, i tried your script but i got debug in 17th line 6th argument (it says got table). I created another script with some help that works really good, here is the script if you want to use ; function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle and getElementModel(vehicle) == 425 then local x, y, z = getElementPosition(getLocalPlayer()) local vehicles = getElementsWithinRange(x, y, z, 300, "vehicle") local target = vehicles[1] ~= vehicle and vehicles[1] or vehicles[2] if target then createProjectile(vehicle, 20, x, y, z, 1, target) end end end bindKey( "lshift", "down", shootProjectile) Btw i don't understand what are they for [1] and [2], what does they mean? can you explain me please if you know, thanks
  9. hey all, can somebody help me , i want to fire heat-seeking missile on a "target". I can fire heatseeking missile but can't lock it on a "target", please help, thanks function shootProjectile() local hunter = getPedOccupiedVehicle(localPlayer) if hunter and getElementModel(hunter) == 425 then local x, y, z = getElementPosition(hunter) createProjectile(hunter, 20, x, y, z, hedef) local hedef = getElementsWithinRange(x, y, z, 300, "vehicle") end end bindKey( "lshift", "down", shootProjectile) I almost forgot, HAPPY NEW YEAR btw !
  10. function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle and getElementModel(vehicle) == 425 then local target = getElementModel(targetvehicle) or nil local x, y, z = getElementPosition(vehicle) createProjectile(vehicle, 20, x, y, z, target) end end bindKey( "lshift", "down", shootProjectile) I scripted this , i can fire heatseeking missile from Hunter but... still can't lock on a target, what should i do.. thanks
  11. Thank you again Bilal, i will try it and i will notify you
  12. function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) if getElementModel(vehicle) == 425 then local x, y, z = getElementPosition(vehicle) createProjectile(vehicle, 20, x, y, z) end end bindKey( "lshift", "down", shootProjectile) addEventHandler("onClientResourceStart", resourceRoot, onResourceStart) I can fire heat-seeking missile from Hunter Helicopter by this script, but its like normal missile. I mean, i can't lock it on a target, what should i do..
  13. thanks so much for your answer @Bilal135 i will try it quickly
  14. Hi all, (first im sorry for my bad english) , i want to add heat-seeking missile to hunter helicopter and i want to fire heatseeking missile by Left shift button, but it doesn't work..Where am i wrong? (Hunter ID : 425) (Heat seeking ID : 20) function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) if(vehicle) == 425 then local x, y, z = getElementPosition(vehicle) createProjectile(vehicle, 20, x, y, z) end end bindKey( "lshift", "down", shootProjectile) addEventHandler("onClientResourceStart", resourceRoot, onResourceStart)