Jokeℝ1472771893 Posted April 23, 2012 Posted April 23, 2012 how to make This Script ""When I Stand In Marker Its Opned Gui And I Can Choos Some Car And Its Spawned""
Castillo Posted April 23, 2012 Posted April 23, 2012 createMarker onMarkerHit guiCreateWindow guiCreateGridList guiGridListAddColumn guiGridListAddRow guiGridListSetItemText guiGridListGetItemText guiGridListGetSelectedItem guiCreateButton guiSetVisible triggerServerEvent createVehicle warpPedIntoVehicle San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Jokeℝ1472771893 Posted April 23, 2012 Author Posted April 23, 2012 Like This marker createMarker ( 2447.8999023438, -1664.5,13.5, [cylinder, 1, 0, 0, 0, 0, visibleTo = getRootElement()] )
codeluaeveryday Posted April 23, 2012 Posted April 23, 2012 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. Tutorials: => getOnlineAdmins() => [TUT] Better Join Country => [TUT] Updating admin countries => [TUT] Updating admin flags Server: K@N Zombies / Freeroam
iFoReX Posted April 24, 2012 Posted April 24, 2012 ? 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 elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
CapY Posted April 24, 2012 Posted April 24, 2012 ? 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 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.
iFoReX Posted April 24, 2012 Posted April 24, 2012 ? 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) elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
CapY Posted April 24, 2012 Posted April 24, 2012 11th. argument does not exist. OR The topic creator could just use Yakuza.real's code, as Binslayer1 said.
iFoReX Posted April 24, 2012 Posted April 24, 2012 11th. argument does not exist. OR The topic creator could just use Yakuza.real's code, as Binslayer1 said. What... ? I dont undestand elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
CapY Posted April 24, 2012 Posted April 24, 2012 11th. argument does not exist. OR The topic creator could just use Yakuza.real's code, as Binslayer1 said. What... ? I dont undestand Then just simply do not post.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now