Jump to content

Xwad

Members
  • Posts

    1,089
  • Joined

  • Last visited

Everything posted by Xwad

  1. its wokring with all vehicles expect the rhino
  2. Deepu the problem is with the rhino. I think this is an mta sa bug. Its working 100% with all vehicles only with the rhino not!
  3. Deepu the problem is with the rhino. I think this is an mta sa bug. Its working 100% with all vehicles only with the rhino not!
  4. Wait! Now i tested it with another id and its working! So its only not working with the rhino! Why is that?
  5. Wait! Now i tested it with another id and its working! So its only not working with the rhino! Why is that?
  6. not working:/ nothing happens.. Not even debugscript appears!
  7. not working:/ nothing happens.. Not even debugscript appears!
  8. I just want to brake the vehicle when i stop pressing the "w"
  9. I just want to brake the vehicle when i stop pressing the "w"
  10. The function is starting and it has no debug
  11. The function is starting and it has no debug
  12. if you mean the game then here are the screenshots: http://imgur.com/a/7nBLu you can see that its not a tuzrret towered vehicle.. You can see one of the pőicture an admin panel where you can see the vehicles id! So yeah, i need the script from the gamemode, the script that adds a rotetable turret for the car. the tank is just a skin.
  13. screenshot about what? the download?
  14. Can i ask what kind of custom objects?
  15. Screenshot? You can download the 1.0 version and test it
  16. Im trying to brake the vehicle when i stop pressing the "w". Its not working function brake() local vehicle = getPedOccupiedVehicle(localPlayer) local id = getElementModel ( vehicle ) if id == 432 then setControlState ( vehicle,"handbrake", true ) end end bindKey ( "w", "up", brake )
  17. Hi. I have downloaded this resource: https://community.multitheftauto.com/in ... s&id=12651 (download the 1.00 version!!!) This resource is an unfinished world of tanks gamemode. The script contains a turret rotation system <-- This is what i need.. This resource has a lot of lua files with long codes, so my question is: can you help me please take out the turret rotation system part of the script? Thanks in advance,
  18. so which is the better way to rotate the turret?? onClientCursorMove or setTimer and getPedCameraRotation?
  19. now the problem is that i fall trought the objects:/ pls help.
  20. Just like in the machinegun script:D Thanks EInheit-101!
  21. but actualy the component is not moving:/ function turn() local veh = getPedOccupiedVehicle(localPlayer) local id = getElementModel ( veh ) if id == 602 then outputChatBox( "works") local vx,vy,vz = getElementRotation(veh) local screenx, screeny = getCursorPosition() local rx,ry,rz = getVehicleComponentRotation( veh, "misc_a" ) setVehicleComponentRotation(veh, "misc_a", rx,ry,0-vz-screenx) local rx2,ry2,rz2 = getVehicleComponentRotation( veh, "misc_b" ) setVehicleComponentRotation(veh, "misc_b", 0-screeny,ry2,rz2) end end addEventHandler( "onClientCursorMove", getRootElement, turn) addEventHandler ( "onClientCursorMove", getRootElement ( ), function ( cursorX, cursorY, absoluteX, absoluteY, x2, y2, z2 ) if not isChatBoxInputActive ( ) and not isMainMenuActive ( ) and not isConsoleActive ( ) and not isCursorShowing ( ) then local x1, y1, z1 = getPedBonePosition ( player, 6 ) setCameraMatrix ( x1, y1, z1, x2, y2, z2 ) outputChatBox( "cursor moved") end end )
×
×
  • Create New...