Jump to content

How TO Make Marker.


Recommended Posts

createMarker 
onMarkerHit 
guiCreateWindow 
guiCreateGridList 
guiGridListAddColumn 
guiGridListAddRow 
guiGridListSetItemText 
guiGridListGetItemText 
guiGridListGetSelectedItem 
guiCreateButton 
guiSetVisible 
triggerServerEvent 
createVehicle 
warpPedIntoVehicle 

Link to comment
Like This
marker createMarker ( 2447.8999023438, -1664.5,13.5, [cylinder, 1, 0, 0, 0, 0, visibleTo = getRootElement()] ) 

Nononononono! That is wrong. MTA is not scripted like this. The [ ] brackets are for showing optional arguments. What you are trying to achieve is way out of your level. I think you should try a smaller script and start from there. If you want to continue, create your own gui with the resource guieditor. Try to script it. If you fail we will try to help. Because you tried.

Link to comment

?

marker createMarker ( 2447.8999023438, -1664.5,13.5, "cylinder", 1, R, G, B, A, getRootElement(), true ) 
  
 window = guiCreateWindow(...) 
  
function markerHit (hitPlayer) 
    if ( hitPlayer == localPlayer ) then 
guiSetVisible( window, true ) 
        showCursor (true) 
    end 
end 
addEventHandler ("onClientMarkerHit", marker, markerHit) 

I think u want do it :D

Link to comment
?
marker createMarker ( 2447.8999023438, -1664.5,13.5, "cylinder", 1, R, G, B, A, getRootElement(), true ) 
  
 window = guiCreateWindow(...) 
  
function markerHit (hitPlayer) 
    if ( hitPlayer == localPlayer ) then 
guiSetVisible( window, true ) 
        showCursor (true) 
    end 
end 
addEventHandler ("onClientMarkerHit", marker, markerHit) 

I think u want do it :D

Just to mention how 'marker' variable is not defined properly and R,G,B and A does not contain integer values, 11th. argument does not exist.

Link to comment
?
marker createMarker ( 2447.8999023438, -1664.5,13.5, "cylinder", 1, R, G, B, A, getRootElement(), true )  --Here The Colours example 255, 0, 0 (red) and A 255  
  
 window = guiCreateWindow(...) 
  
function markerHit (hitPlayer) 
    if ( hitPlayer == localPlayer ) then 
guiSetVisible( window, true ) 
        showCursor (true) 
    end 
end 
addEventHandler ("onClientMarkerHit", marker, markerHit) 

I think u want do it

Just to mention how 'marker' variable is not defined properly and R,G,B and A does not contain integer values, 11th. argument does not exist.

Sory my error :B

marker = createMarker ( 2447.8999023438, -1664.5,13.5, "cylinder", 1, R, G, B, A, getRootElement(), true ) 
R = 255 
G = 0 
B = 0 
A = 255      ---With it variables u make the marker Red 
  
 window = guiCreateWindow(...) 
  
function markerHit (hitPlayer) 
    if ( hitPlayer == localPlayer ) then 
guiSetVisible( window, true ) 
        showCursor (true) 
    end 
end 
addEventHandler ("onClientMarkerHit", marker, markerHit) 

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