Jump to content

DarkMaan

Members
  • Posts

    4
  • Joined

  • Last visited

Details

  • Gang
    Grove

DarkMaan's Achievements

Vic

Vic (3/54)

0

Reputation

  1. LOL, Thank you it works!
  2. is "SO" wrong? and '139' is 21
  3. SCRIPT ERROR: DD-Build\marker.lua:139 '=' expected near 'function'
  4. function startt () srandomveh() end addEventHandler("onResourceStart", getResourceRootElement(), startt) function srandomveh () local zahlm = math.random (1, 3) local portstring = pos[tonumber(zahlm)] local mX = gettok ( portstring, 1, string.byte(',') ) local mY = gettok ( portstring, 2, string.byte(',') ) local mZ = gettok ( portstring, 3, string.byte(',') ) ramarker = createMarker (mX, mY, mZ, "checkpoint", 2.25, 255,0,0) addEventHandler( "onMarkerHit", ramarker, newmarker) addEventHandler( "onMarkerHit", ramarker, randomveh) end function newmarker () destroyElement(ramarker) srandomveh() end SO function randomveh (thePlayer) if getElementType(thePlayer)=="player" then local veh = getPedOccupiedVehicle (thePlayer) local zahlv = math.random (1, 111) local x,y,z = getElementPosition (veh) setElementModel (veh, cars[zahlv]) local veh2 = getElementModel (veh) setElementPosition (veh , x, y, z+0.25) fixVehicle (veh) end end
×
×
  • Create New...