Jump to content

[HELP]Erro In Script


Black2

Recommended Posts

Why this don't work ?

I need this open only in dimension 2

     
local markerp = createMarker( -1868.72, 46.16, 1054.2, 'Cylinder', 1.5, 255, 255, 0, 170  ); 
setElementDimension(markerp, 2) 
  
function Pilotjob(hitElement, matchingDimension) 
             if getElementType(hitElement) == "player" and (hitElement == localPlayer) and (getElementDimension(hitElement) == matchingDimension) then 
                  if not guiGetVisible(Wnd) then 
                       guiSetVisible(Wnd, true) 
                       showCursor(true) 
                  end 
             end 
        end 
addEventHandler("onClientMarkerHit", markerp, Pilotjob) 
  

Link to comment
local markerp = createMarker( -1868.72, 46.16, 1054.2, 'Cylinder', 1.5, 255, 255, 0, 170  ); 
setElementDimension(markerp, 2) 
  
function Pilotjob(hitElement, matchingDimension) 
             if getElementType(hitElement) == "player" and (hitElement == localPlayer) and (matchingDimension == true) then 
                  if not guiGetVisible(Wnd) then 
                       guiSetVisible(Wnd, true) 
                       showCursor(true) 
                  end 
             end 
        end 
addEventHandler("onClientMarkerHit", markerp, Pilotjob) 

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...