Sign in to follow this  
yMassai

Create Vehicles

Recommended Posts

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?

Share this post


Link to post

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

Share this post


Link to post

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.

Share this post


Link to post

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

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.