Jump to content

Mr.unpredictable.

Members
  • Posts

    437
  • Joined

  • Last visited

Everything posted by Mr.unpredictable.

  1. Can you explain? what are you trying to do?
  2. setWeaponProperty(<weapon id>, "std", "flag_anim_reload_long", <value>)
  3. local x2, y2, z2 = getElementPosition(kolczatka) kCol [ player ] = createColCuboid ( x2, y2, z2, 3)
  4. can you post the part of the code, where you created the object and where you created the col ?
  5. getElementPosition get the postion of object and then createColShape or createColSphere Edit: btw the object Id is 2892
  6. I don't understand can you explain it ?
  7. You can use SetVehicleWheelStates https://wiki.multitheftauto.com/wiki/Se ... heelStates You mean droping the spikes in front of you? or want the object to be placed stright?
  8. http://www.jabong.com/Puma-Evopower-12- ... 69527.html
  9. Script looks fine, What's the problem.
  10. The title is pretty self-explanatory Rules: Just change the nick of the above user who posted.
  11. getElementPosition getElementMatrix getElementRotation
  12. https://forum.multitheftauto.com/viewtopic.php?f=91&t=86285
  13. my formatting sucks but here's one example bindKey("vehicle_fire", "down", function() local assholeinvehcile = getPedOccupiedVehicle(getLocalPlayer()) local x, y, z = getElementPosition(assholeinvehcile) local m = getElementMatrix(assholeinvehcile) local offX = 0 * m[1][1] + 1 * m[2][1] + 0 * m[3][1] + 1 * m[4][1] local offY = 0 * m[1][2] + 1 * m[2][2] + 0 * m[3][2] + 1 * m[4][2] local offZ = 0 * m[1][3] + 1 * m[2][3] + 0 * m[3][3] + 1 * m[4][3] vx = offX - x vy = offY - y vz = offZ - z local rotx, roty, rotz = getElementRotation(assholeinvehcile) createProjectile(getLocalPlayer(), 19, x+1, y-0.5, z+0.8, 5000, nil, 0, 0, 360 - rotz, vx, vy, vz) ------- not sure on which angle it is firing, just edit it. end)
  14. getElementPosition getElementMatrix getElementRotation this won't help setCameraMatrix
  15. https://forum.multitheftauto.com/viewtopic.php?f=91&t=86285
  16. Just add my script client side and it will work fine
  17. Can you explain what are you trying to do? My code won't explod the vehicle but it will do 30% damage the vehicle
  18. That would be great, but i think it's really hard to move vehicles. 1st i tough of attaching trains to moving objects and make those objects invisible but it didn't help.
  19. Thanks, but I stoped that project coz i was not able to make proper moving train which kills ped, My script was not working fine. It would be nice if you help me with moving train which kills ped on hit.
  20. Try this it will destroy the object with model id 800 function haha(modelID) local obj = getElementsByType("object") for i,v in ipairs(obj) do if (getElementModel(v) == modelID) then destroyElement(v) end end end haha(800)
  21. https://wiki.multitheftauto.com/wiki/StopSound or you change the volume of other sounds https://wiki.multitheftauto.com/wiki/setSoundVolume
×
×
  • Create New...