Jump to content

omarhossam

Members
  • Posts

    16
  • Joined

  • Last visited

omarhossam's Achievements

Square

Square (6/54)

0

Reputation

  1. HAHAHAHAAH, Anyway ty
  2. i meant to spawn a veh when i select the row and press the spawn button
  3. omarhossam

    How to...

    i want to know How to attach a veh in a row in the gridlist?? function createGui () gui = guiCreateWindow( 300, 100, 265, 500, "Bike Rent Shop", false) guiSetInputEnabled ( false ) guiSetVisible(gui, false) guiWindowSetMovable( gui, false ) guiWindowSetSizable( gui, false ) List = guiCreateGridList ( 0.04, 0.05, 0.95, 0.75, false, gui ) column = guiGridListAddColumn( List, "Bikes", 0.85 ) btn1 = guiCreateButton( 149, 430, 99, 45, "Leave", false, gui ) guiSetFont( btn1, "default-bold-small" ) List = guiCreateGridList ( 0.04, 0.05, 0.95, 0.75, true, gui ) column = guiGridListAddColumn( List, "Bikes", 0.85 ) btn2 = guiCreateButton(18,430,99,45,"Rent 50$",false, gui) guiSetProperty( btn1, "HoverTextColour", "FFFF0000" ) guiSetProperty( btn2, "HoverTextColour", "FFFFFF00" ) row = guiGridListAddRow (List) guiGridListSetItemText ( List, row, column, "Mountain Bike", false, false ) myItemData = guiGridListGetItemData (List, row, column ) row2 = guiGridListAddRow (List) guiGridListSetItemText (List, row2, column, "BMX", false, false ) row3 = guiGridListAddRow (List) guiGridListSetItemText (List, row3, column, "Bike", false, false ) addEventHandler("onClientGUIClick", btn1, close, false) addEventHandler("onClientGUIClick", btn2, rent, false) end
  4. not dpsen panel.... just exaple for spawn cat from the panel....
  5. please give me example for 1 veh .... please i cant make it
  6. thats on which side??? and where to type the ids of the cars....!!
  7. omarhossam

    spawncar

    How to spawn cars from a GridList when i press a spawn button
  8. how to spawn the bikes when i hit rent button and take 50 $ from the player money ... the last thing please
  9. and what was the wrong?? with mine?
  10. wooooooooooooooow...... ty Bro finally its worked :D:D Btw can you tell me the code that make the ped dont die ???? ty, again
  11. Try this: function gui () gui = guiCreateWindow( 300, 100, 265, 500, "Bike Rent Shop", false) guiSetInputEnabled ( false ) guiSetVisible(gui, false) guiWindowSetMovable( gui, false ) guiWindowSetSizable( gui, false ) List = guiCreateGridList ( 0.04, 0.05, 0.95, 0.75, false, gui ) column = guiGridListAddColumn( List, "Bikes", 0.85 ) btn1 = guiCreateButton( 149, 430, 99, 45, "Leave", false, gui ) guiSetFont( btn1, "default-bold-small" ) List = guiCreateGridList ( 0.04, 0.05, 0.95, 0.75, true, gui ) column = guiGridListAddColumn( List, "Bikes", 0.85 ) btn2 = guiCreateButton(18,430,99,45,"Rent 50$",false, gui) guiSetProperty( btn1, "HoverTextColour", "FFFF0000" ) guiSetProperty( btn2, "HoverTextColour", "FFFFFF00" ) row = guiGridListAddRow (List) guiGridListSetItemText ( List, row, column, "Mountain Bike", false, false ) row2 = guiGridListAddRow (List) guiGridListSetItemText (List, row2, column, "BMX", false, false ) row3 = guiGridListAddRow (List) guiGridListSetItemText (List, row3, column, "Bike", false, false ) addEventHandler("onClientGUIClick", btn1, close, false) addEventHandler("onClientGUIClick", btn2, rent, false) end function rent (button,state) if button == "left" and state == "up" then takeCash ( thePlayer, amount ) takePlayerMoney ( thePlayer, 100 ) end end local marker = createMarker (1220, -1415.5,12, "cylinder", 1.5, 0, 0, 225, 225) addEventHandler("onClientMarkerHit", marker, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible( gui, true) showCursor( true) outputChatBox( "Bike shop : Welcome to the Rent Shop", 255, 255, 5) end end ) function close(button,state) if button == "left" and state == "up" then guiSetVisible ( lol, false) guiSetInputEnabled(false) guiSetVisible(gui, false) showCursor(false) end end this time the cursor appears only...
  12. DONT WORK TOO.....!!! Are you sure that you can script?
  13. still appears one time........ -.- .... BTW you know how to mkae the ped dont die?
  14. it doesnt.... still appears one time
  15. function gui () gui = guiCreateWindow( 300, 100, 265, 500, "Bike Rent Shop", false) guiSetInputEnabled ( false ) guiWindowSetMovable( gui, false ) guiWindowSetSizable( gui, false ) List = guiCreateGridList ( 0.04, 0.05, 0.95, 0.75, false, gui ) column = guiGridListAddColumn( List, "Bikes", 0.85 ) btn1 = guiCreateButton( 149, 430, 99, 45, "Leave", false, gui ) guiSetFont( btn1, "default-bold-small" ) List = guiCreateGridList ( 0.04, 0.05, 0.95, 0.75, true, gui ) column = guiGridListAddColumn( List, "Bikes", 0.85 ) btn2 = guiCreateButton(18,430,99,45,"Rent 50$",false, gui) guiSetProperty( btn1, "HoverTextColour", "FFFF0000" ) guiSetProperty( btn2, "HoverTextColour", "FFFFFF00" ) row = guiGridListAddRow (List) guiGridListSetItemText ( List, row, column, "Mountain Bike", false, false ) row2 = guiGridListAddRow (List) guiGridListSetItemText (List, row2, column, "BMX", false, false ) row3 = guiGridListAddRow (List) guiGridListSetItemText (List, row3, column, "Bike", false, false ) addEventHandler("onClientGUIClick", btn1, close, false) addEventHandler("onClientGUIClick", btn2, rent, false) end function rent (button,state) if button == "left" and state == "up" then takeCash ( thePlayer, amount ) takePlayerMoney ( thePlayer, 100 ) end end local marker = createMarker (1220, -1415.5,12, "cylinder", 1.5, 0, 0, 225, 225) addEventHandler("onClientMarkerHit", marker, function ( hitPlayer ) gui() if ( hitPlayer == localPlayer ) then guiSetVisible( gui, true) showCursor( true) outputChatBox( "Bike shop : Welcome to the Rent Shop", 255, 255, 5) end end ) function close(button,state) if button == "left" and state == "up" then guiSetVisible ( lol, false) guiSetInputEnabled(false) guiSetVisible(gui, false) showCursor(false) end end
×
×
  • Create New...