Advertisement
NanoBob

Trucking markers

Mar 18th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.80 KB | None | 0 0
  1. TruckDriverPositions={
  2.     {-1743.8542480469,135.75717163086,2.5495548248291},
  3.     {2457.1401367188,-2090.2238769531,12.546875},
  4.     {1672.8303222656,1624.9276123047,9.8203115463257},
  5.     {-136.1219329834,1212.3327636719,20.515922546387},
  6.     {1344.5740966797,343.79833984375,18.832433700562},
  7.     {-61.791076660156,-1134.3813476563,0.078125},
  8.     {222.57992553711,17.06884765625,1.578125},
  9.     {-1527.1180419922,2636.4255371094,54.8359375},
  10.     {-2100.3845214844,-2241.5710449219,29.625},
  11.     {-2465.0461425781,2230.8249511719,5.5247325897217},
  12.     {-2652.4577636719,-46.65202331543,3.3359375},
  13.     {2774.3854980469,2527.796875,9.8203125},
  14.     {2853.6743164063,916.47338867188,9.75},
  15.     {-1740.5748291016,1408.1433105469,7.6563048362732},
  16.     {-1023.0128173828,-658.43719482422,32.417705535889},
  17.     {1652.5927734375,957.63507080078,9.7225389480591},
  18.     {-486.27856445313,-510.47109985352,26.289840698242},
  19.     {1092.9760742188,1751.580078125,9.8203125},
  20.     {-1546.3872070313,-2752.572265625,48.94709777832},
  21.     {-2432.5583496094,739.93151855469,34.015625},
  22.     {795.69799804688,-600.59442138672,16.926044464111},
  23.     {1795.4611816406,-1696.3817138672,12.518705368042},
  24.     {665.08990478516,-1263.9633789063,12.4609375},
  25.     {2277.1909179688,-91.318298339844,26.770751953125},
  26.     {2431.5922851563,-1230.91796875,24.023817062378},
  27.     {-311.22369384766,2677.8732910156,63.346885681152},
  28.    
  29. }
  30. function createAllTruckMarkers(player)
  31.     if player==getLocalPlayer() then
  32.         for id,Data in ipairs(TruckDriverPositions) do
  33.             truckBlip=createBlip(Data[1],Data[2],Data[3],51,2,255,255,255,255,0,100000000)
  34.             truckMarker=createMarker(Data[1],Data[2],Data[3],"cylinder",10,40,80,90,100)   
  35.             setElementData(truckMarker,"markerType","truckmarker")
  36.             setElementData(truckBlip,"blipType","truckblip")
  37.             addEventHandler("onClientMarkerHit",truckMarker,drawDestinationChoosingGUI)
  38.         end
  39.     end
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement