Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by gerlachmax98

  1. Thank-you ) In front of the vehicle will be good, but it will Not work to all vehicle, or?
  2. okay ty can you make it so that you may standing in front of the car and not as driver?
  3. http://wiki.multitheftauto.com/wiki/Animations this exist, but there is no Animation...
  4. so? function getNearestVehicle( player ) local x, y, z = getElementPosition( player ) local prevDistance local nearestVehicle for i, v in ipairs( getElementsByType( "vehicle" ) ) do local distance = getDistanceBetweenPoints3D( x, y, z, getElementPosition( v ) ) if distance <= ( prevDistance or distance + 1 ) then prevDistance = distance nearestVehicle = v end end return nearestVehicle or false end function doSomethingWithTheNearestVeh( player ) local vehicle = getNearestVehicle( player ) -- get t
  5. Yes, but i need a animation on a timer... I do not know how to do it...
  6. Thank you so much!!!! How i can set a timer, when the vehicle is repairing. For a half minute. Can be there a animation when the vehicle is repairing ? (Half minute)
  7. [2013-01-24 20:51:05] WARNING: vio_lite\reparieren\server.lua:85: Bad argument @ 'getElementPosition' [Expected element at argument 1, got nil] [2013-01-24 20:51:05] WARNING: vio_lite\reparieren\server.lua:89: Bad argument @ 'getDistanceBetweenPoints3D' [2013-01-24 20:51:05] ERROR: vio_lite\reparieren\server.lua:90: attempt to perform arithmetic on local 'distance' (a boolean value) I have it now so: function getNearestVeicle() local x, y, z = getElementPosition( localPlayer ) local prevDistance local nearestVehicle for i, v in ipairs( getElementsByType( "vehicle"
  8. How i get the nearest vehicle. For example is stand in front of a vehicle, and with the command /open you can open the vehicle bonnet from the nearest vehicle. Please help...
  9. client: function SubmitAbbrechenBtn( button ) guiSetVisible(GUIEditor.window[1],false) showCursor(false) triggerServerEvent ( "cancel_gui_server", lp ) end GUIEditor.window[1] = {} function createGui () local screenwidth, screenheight = guiGetScreenSize () GUIEditor.window[1] = guiCreateWindow(screenwidth/2-411,screenheight/2-285/2,411, 285, "miau", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(-10, 32, 434, 15, "miau", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(GUIEditor.label[1], "ce
  10. I will put down my current weapon by Command? How i can do this?
  • Create New...