Jump to content

Help


Wei

Recommended Posts

How can I add here that when player click button it will give me a bike like it's listed.

Code:

bike_spawn_window = guiCreateWindow(376,202,232,329,"SHG Bike Spawner",false) 
guiWindowSetSizable(bike_spawn_window,false) 
guiSetVisible ( bike_spawn_window, false ) 
bmx_button = guiCreateButton(9,28,213,66,"BMX",false,bike_spawn_window) 
mountain_bike_button = guiCreateButton(15,174,208,66,"Mountain bike",false,bike_spawn_window) 
bike_button = guiCreateButton(13,100,207,66,"Bike",false,bike_spawn_window) 
  
  
policemarker = createMarker ( 1538.97107, -1686.05786, 13.54688, "cylinder", 1, 255, 255, 255, 100 ) 
  
  
function Window() 
    if (guiGetVisible(bike_spawn_window) == true) then 
        guiSetVisible(bike_spawn_window, false) 
        showCursor(false) 
    else 
        guiSetVisible(bike_spawn_window, true) 
        showCursor(true) 
    end 
end 
addEventHandler ( "onClientMarkerHit", policemarker, Window ) 
  
  
addEventHandler("onClientGUIClick",guiCreateButton(18,248,203,66,"Close",false,bike_spawn_window), 
function() 
guiSetVisible(bike_spawn_window,false) 
showCursor(false) 
end,false) 
  
  

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