yMassai Posted April 3, 2012 Share Posted April 3, 2012 Car2 --Create GUI function carCreateTestGUI ( ) car_window_main = guiCreateWindow(0.3,0.2,0.2,0.3,"Criador de Carros",true) car_window_main_button_criar = guiCreateButton(0.010,0.85,0.6,0.130,"Criar",true,car_window_main) car_window_main_button_x = guiCreateButton(0.85,0.140,0.120,0.10,"X",true,car_window_main) showCursor ( true ) end addEvent ( "carCreateTestGUI", true ) addEventHandler ( "carCreateTestGUI", root, carCreateTestGUI ) --Destroy GUI function carDestroyTestGUI ( ) if isElement ( car_window_main ) then destroyElement ( car_window_main ) end if isElement ( car_window_main_button_criar ) then destroyElement ( car_window_main_button_x ) end if isElement ( car_window_main_button_x ) then destroyElement ( car_window_main_button_x ) end showCursor ( false ) end --On test Window Click function carOnTestWindowClick ( ) if ( source == car_window_main_button_criar ) then triggerServerEvent ( "carCreateTest", localPlayer ) carDestroyTestGUI ( ) elseif ( source == car_window_main_button_x ) then carDestroyTestGUI ( ) end end addEventHandler ( "onClientGUIClick", root, carOnTestWindowClick ) Car1 --Create Stuff function carCreateTrainStuff ( ) car_marker_request = createMarker( 1507.69433, -1714.55761, 13.04687, "cylinder", 1.5, 250, 150, 50, 170) end addEventHandler ( "onResourceStart", resourceRoot, carCreateTrainStuff ) addEventHandler ( "onClientPedDamage", ped, function ( ) cancelEvent ( ) end ) --Test Gui function carCreateTestGUI ( hitElement ) if ( source == car_marker_request ) then triggerClientEvent ( hitElement, "carCreateTestGUI", hitElement ) end end addEventHandler ( "onMarkerHit", root, carCreateTestGUI ) how could I create a list of vehiculos to create? someone could create a list with two vehiculos and when to create the player get on the vehicle? Link to comment
DNL291 Posted April 4, 2012 Share Posted April 4, 2012 where is event carCreateTest ? Link to comment
DNL291 Posted April 4, 2012 Share Posted April 4, 2012 You're waiting for someone to create for you. Nobody will do the script for you for free.(Probably no one). learn Lua and make your scripts yourself Link to comment
yMassai Posted April 4, 2012 Author Share Posted April 4, 2012 I remind you that this topic was created in a specific category for this? The player can create a topic here when find some kind of problem is to produce the script or if find any errors. Make the script for free? I would use a term subtle to talk about this. A player who does not know the composition of the script can not create it. Link to comment
DNL291 Posted April 4, 2012 Share Posted April 4, 2012 You're asking to create a list of vehicles for you, nobody will work on a script for you for free. you could have done it and ask for help in the rest. you can learn no one is born knowing Lua scripting. viewtopic.php?f=148&t=40809 Link to comment
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