Jump to content

Marker Table


Desaster

Recommended Posts

I want to creat a table that show 1 gui every time you enter one of the tables I tryed this but it won't work

local CarsTable = { 
    {-1974.662109375, 304.943359375, 34.171875}, 
    {-2535.45703125, -603.28125, 131.562}, 
    {-1947.033203125, 1384.6689453125, 6.1842346191406}, 
    {-309.84765625, 1531.3017578125, 74.359375}, 
    {-1979.05078125, 433.1484375, 24.684421539307}, 
    {2804.23828125, -1429.646484375, 39.05331802368}, 
    {-2245.462890625, 2371.8662109375, 3.996054649353}, 
    {-2088.697265625, -2334.876953125, 29.625}, 
    {-2754.69140625, 374.138671875, 3.339025497436}, 
    {1245.85546875, -2027.7939453125, 58.830238342285}, 
    {-1407.2783203125, -312.3896484375, 12.992641448975} 
} 
  
  
function menuShow() 
    visableornot = guiGetVisible (theWindow) 
    if (visableornot == true) then 
        guiSetVisible (theWindow, false) 
        showCursor (false) 
    end 
    if (visableornot == false) then 
        guiSetVisible (theWindow, true) 
        showCursor (true) 
    end 
end 
marker1 = createMarker ( CarsTable[1], CarsTable[2], CarsTable[3], "cylinder", 2.0, 250, 50,0, 150) 
addEventHandler ("onClientMarkerHit", marker1, menuShow) 

ps it's a client file

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...