Search the Community
Showing results for tags 'carsshop'.
-
Hello, .. 1 year from last post ! whatever.. i'm trying to make players see the car before buying it but i don't find the solution to create this Fonction.. i mean when player slecet a car from the list .. it's shown with rotation or something then .. Client.lua Help / مساعده carshopWindow = guiCreateWindow(500,200,290,440,"==[ Car Shop ]==",false) guiSetVisible (carshopWindow, false) guiSetAlpha(carshopWindow,1) guiWindowSetSizable(carshopWindow,false) selectLabel = guiCreateLabel(0.0423,0.1009,0.8889,0.078,"~Select your car~",true,carshopWindow) guiSetAlpha(selectLabel,1) guiLabelSetColor(selectLabel,255,255,255) guiLabelSetVerticalAlign(selectLabel,"top") guiLabelSetHorizontalAlign(selectLabel,"left",false) guiSetFont(selectLabel,"default-bold-small") carGridList = guiCreateGridList(0.0476,0.1789,0.9048,0.6789,true,carshopWindow) guiGridListSetSelectionMode(carGridList,0) carColumn = guiGridListAddColumn(carGridList,"Car",0.5) costColumn = guiGridListAddColumn(carGridList,"$",0.3) local cars = {{461,30000},{468,30000},{534,40000},{535,40000},{576,40000},{579,50000},{489,50000},{495,50000},{518,60000},{527,60000},{589,60000},{419,60000},{517,60000},{410,60000},{436,60000},{406,400000},{451,400000},{541,600000},{494,600000},{411,600000}} for i,v in ipairs (cars) do local carName = getVehicleNameFromModel (v[1]) local row = guiGridListAddRow (carGridList) guiGridListSetItemText (carGridList, row, 1, carName, false, true) guiGridListSetItemText (carGridList, row, 2, tostring(v[2]), false, true) end guiSetAlpha(carGridList,1) buyButton = guiCreateButton(0.0476,0.8624,0.7778,0.0963,"==[ Buy it ]==",true,carshopWindow) guiSetAlpha(buyButton,1) guiSetProperty(buyButton, "NormalTextColour", "FF00FF00") closeButton = guiCreateButton(0.8571,0.8624,0.0899,0.1009,"X",true,carshopWindow) guiSetProperty(closeButton, "NormalTextColour", "FFFF0000")