وش الحل اجيب كود المود
local window = guiCreateWindow(353, 146, 200, 358, "Cars", false)
guiWindowSetSizable(window, false)
guiSetVisible (window,false)
guiSetAlpha(window, 1.00)
local gridlist = guiCreateGridList(10, 20, 256, 270, false, window)
guiGridListAddColumn(gridlist, "Cars Server Or Group", 0.9)
local button2 = guiCreateButton(10, 311, 68, 35, "Use", false, window)
guiSetProperty(button2, "NormalTextColour", "ffff0000")
local button = guiCreateButton(100, 311, 68, 35, "Close", false, window)
guiSetProperty(button, "NormalTextColour", "FFFF0000")
local car = { 481, 422 }
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("Please Use Car",255,255,255,true) end
triggerServerEvent("carx",localPlayer,carxx)
guiSetVisible(window,false)
showCursor(false)
end,false
)
-------------------------------You are at (1625.54309 1821.81421 10.82031)
local car = createMarker (1625.54309,1821.82000,9.82031, "cylinder", 2, 0,0,0, 111 )
addEventHandler('onClientMarkerHit', car,
function ( hitPlayer )
if ( hitPlayer == localPlayer ) then
guiSetVisible ( window ,true )
showCursor( true )
guiSetInputEnabled(false)
end
end
)
addEventHandler( "onClientGUIClick", button ,
function ()
guiSetVisible(window,false)
showCursor(false,false)
end
)