Jump to content

Ninja

Members
  • Posts

    45
  • Joined

  • Last visited

Everything posted by Ninja

  1. Ninja

    DxDraw GridList

    Sorry I deleted all my old work because it didn't work. Why should I keep old files which doesn't work?
  2. Hey all:) I want to ask you if anyone of you could create a simple dxDraw GridList for me that I just have to insert my pictures. And don't tell me something like:"It's easy you have just to...." I really tried to do it on my own but failed all the time so... I would be really greatful if you do that for me.
  3. I want that you press left alt to speed up forwards and press left shift to jump a bit... But whats that script kenix there is a part missing with the "lalt".
  4. still doesn't work... The First one works, that you get faster in one way but the second one that you get higher not..
  5. Hey all, can anyone help me? Why do the second boost not work? --Made by Ninja-- local root = getRootElement() boostTimer = false local currentlyBoosting = false function onCarDownResourceStart(resource) bindKey("lalt", "down", startBoost) bindKey("lalt", "up", stopBoost) bindkey("lshift", "down", startBoost2) bindkey("lshift", "up", stopBoost2) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onCarDownResourceStart) function startBoost (key, keyState) local vehicle = getPlayerOccupiedVehicle ( getLocalPlayer () ) if ( vehicle ) then if ( getVehicleController ( vehicle ) == getLocalPlayer () ) then boostTimer = setTimer(startCarBoost, 50, 0, vehicle) --outputChatBox ( "boostTimer=" .. tostring(boostTimer) ) currentlyBoosting = true else outputChatBox( "You need to be the driver!", 255, 0, 0 ) end end end function startCarBoost(vehicle) local vehSpeedX, vehSpeedY, vehSpeedZ = getElementVelocity ( vehicle ) setElementVelocity ( vehicle, vehSpeedX*1.1, vehSpeedY*1.1, vehSpeedZ*1) end function startBoost2 (key, keyState) local vehicle = getPlayerOccupiedVehicle ( getLocalPlayer () ) if ( vehicle ) then if ( getVehicleController ( vehicle ) == getLocalPlayer () ) then boostTimer = setTimer(startCarBoost2, 50, 0, vehicle) --outputChatBox ( "boostTimer=" .. tostring(boostTimer) ) currentlyBoosting = true else outputChatBox( "You need to be the driver!", 255, 0, 0 ) end end end function startCarBoost2(vehicle) local vehSpeedX, vehSpeedY, vehSpeedZ = getElementVelocity ( vehicle ) setElementVelocity ( vehicle, vehSpeedX*1, vehSpeedY*1, vehSpeedZ*1.1) end function stopBoost( key, keystate ) if ( currentlyBoosting ) then --outputChatBox ( "boostTimer=" .. tostring(boostTimer) ) killTimer( boostTimer ) currentlyBoosting = false end end function stopBoost2( key, keystate ) if ( currentlyBoosting ) then --outputChatBox ( "boostTimer=" .. tostring(boostTimer) ) killTimer( boostTimer ) currentlyBoosting = false end end
  6. Ninja

    Collision

    now it looks like this but still doeesn't work and still the warning appears: bad argument @ 'setelementcollisionenabled' and now its yours.. i made the last you said
  7. Ninja

    Collision

    local tObjects = { createObject ( 3437, 5222.7998046875, 755.70001220703, 62.799999237061, 0, 90, 0 ); } for nIndex, uObject in pairs ( tObjects ) do setElementCollisionsEnabled ( nIndex, false ); end This one
  8. Ninja

    Collision

    ok thx but no appears a Warning with: bad argument @'setelementcollisionenabled'? The objects are there but with collision...
  9. Ninja

    Collision

    49. createObject ( 3437, 5214.099609375, 773.2998046875, 62.799999237061, 0, 90, 90) 50. createObject ( 3437, 5214.099609375, 785, 62.799999237061, 0, 90, 90); 51. createObject ( 3437, 5214.099609375, 796.7001953125, 62.799999237061, 0, 90, 90);
  10. Ninja

    Collision

    A Warning appears: But in line 50 is no }
  11. Ninja

    Collision

    debug? you mean debugscript 3?
  12. Ninja

    Collision

    now i used this but still doesn't work Server sided right?
  13. Ninja

    Collision

    local tObjects = { createObject ( 3437, 5222.7998046875, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5199.3999023438, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5234.4995117188, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5246.19921875, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5257.8989257813, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5269.5986328125, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5281.2978515625, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5292.998046875, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5304.697265625, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5187.69921875, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5175.9990234375, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5164.298828125, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5152.5986328125, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5140.8984375, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5129.1982421875, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5117.498046875, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.1000976563, 755.70001220703, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.1000976563, 758.69921875, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.1000976563, 761.69921875, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.1000976563, 764.69921875, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.1000976563, 767.69921875, 62.799999237061, 0, 90, 0); createObject ( 3437, 5211.099609375, 773.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 785, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 796.69921875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 808.3994140625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 820.099609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 831.7998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 843.5, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 855.19921875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 866.8994140625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 878.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5211.099609375, 902, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 878.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 866.90234375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 855.2021484375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 843.501953125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 831.8017578125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 820.1005859375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 796.7001953125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 785, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 773.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5208.099609375, 761.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 761.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 773.2998046875, 62.799999237061, 0, 90, 90) createObject ( 3437, 5214.099609375, 785, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 796.7001953125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 820.1005859375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 831.8017578125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 843.501953125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 855.2021484375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 866.90234375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 878.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5214.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5181.099609375, 761.599609375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5184.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5187.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5190.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5193.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5229.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5232.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5235.095703125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5238.095703125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5241.095703125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5238.095703125, 773.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5235.095703125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5232.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5229.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5193.09765625, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5190.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5187.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5184.095703125, 890.2998046875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5235.095703125, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5232.0966796875, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5229.0966796875, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.09765625, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.09765625, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.095703125, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5193.095703125, 785.0029296875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5232.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5229.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.0966796875,,796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.09375, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5193.09375, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5190.0908203125, 796.7060546875, 62.799999237061, 0, 90, 90); createObject ( 3437, 5193.091796875, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.091796875, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.095703125, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.095703125, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5229.0966796875, 808.400390625, 62.799999237061, 0, 90, 90); createObject ( 3437, 5226.09765625, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.0947265625, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.0947265625, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5196.08984375, 820.1083984375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5199.09375, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.09375, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5223.09765625, 831.80078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5220.0986328125, 843.5078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 843.5078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 843.5078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5202.0927734375, 843.5078125, 62.799999237061, 0, 90, 90); createObject ( 3437, 5205.099609375, 855.2021484375, 62.799999237061, 0, 90, 90); createObject ( 3437, 5217.0986328125, 855.2021484375, 62.799999237061, 0, 90, 90); } for nIndex, uObject in pairs ( tObjects ) do setElementCollisionsEnabled ( uObject, false ); end this?
  14. Ninja

    Collision

    can you pls make the script you mean with a few objects?
  15. Ninja

    Collision

    which one can you make it with jsut a few objects?
  16. Ninja

    Collision

    OMFG WHY THIS FUCKIN SCRIPT DOESN'T WORK?!?!? FUCK THIS I made this script and first it worked then i added some objects and now it fails every time! PLEASE HELP ME
  17. Ninja

    Collision

    But if i do this... ...it works only if the modified files doesn't load... I mean this is for the object Ballypillar01 and i works when my MTA bug and the script of the txd doesn't load but when it lodas (the txd) then there is a collision,,,
  18. Ninja

    Collision

    how can i make the same script for modified objects?
  19. Ninja

    Collision

    Do it also work if i have a txd for the object? I mean that i have changed the design?
  20. Ninja

    Collision

    ok thx i try it
  21. Ninja

    Collision

    and if i add now all my objects at createobject i dont have to make everytime setelementcollisionEnabled for every Object?
  22. Ninja

    Collision

    yes but i want to make a table.... i dont want to make evrytime the same not just copy and paste
×
×
  • Create New...