Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local window = guiCreateWindow(353, 146, 323, 358, "Cars Group", false)
- guiWindowSetSizable(window, false)
- guiSetVisible (window,false)
- guiSetAlpha(window, 1.00)
- local gridlist = guiCreateGridList(33, 46, 256, 253, false, window)
- guiGridListAddColumn(gridlist, "Car", 0.9)
- local button2 = guiCreateButton(29, 311, 68, 35, "Use", false, window)
- guiSetProperty(button2, "NormalTextColour", "ffff0000")
- local button = guiCreateButton(288, 25, 26, 22, "X", false, window)
- guiSetProperty(button, "NormalTextColour", "FFFF0000")
- local car = { 470 , 433, 415, 541, 411, 560, 451, 480, 579, 565, 568, 581, 521, 461, 468 }
- for _,vehicle in ipairs (car) do
- local row = guiGridListAddRow ( gridlist )
- guiGridListSetItemText ( gridlist, row, 1,getVehicleNameFromModel (tonumber( vehicle )), false, false )
- end
- addEventHandler("onClientGUIClick",button2,
- function ()
- local carxx = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 )
- if carxx == "" then return outputChatBox("Plese Use Car",255, 0, 0,false) end
- triggerServerEvent("carx",localPlayer,carxx)
- guiSetVisible(window,false)
- showCursor(false)
- end,false
- )
- ------------
- local car = createMarker ( 50.099998474121,297.79998779297,-36.599998474121, "cylinder", 2, 57, 0, 0, 255 )
- addEventHandler('onClientMarkerHit', car,
- function ( hitPlayer )
- if ( hitPlayer == localPlayer ) and getPlayerTeam( hitPlayer ) and getTeamName( getPlayerTeam( hitPlayer ) ) == 'Police' and getElementData( hitPlayer, 'Group' ) == '[ARMY]' then
- guiSetVisible ( window ,true )
- showCursor( true )
- guiSetInputEnabled(false)
- end
- end
- )
- addEventHandler( "onClientGUIClick", button ,
- function ()
- guiSetVisible(window,false)
- showCursor(false,false)
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement