-
Posts
512 -
Joined
-
Last visited
Everything posted by 3B00DG4MER
-
Hello,Skin shop lol ,I think it's too hard this time ! all things alright one thing only which is when i click buy then nothing happened Client Side: addEventHandler("onClientGUIDoubleClick",TypeClothes_Grid,function() local Selected = guiGridListGetItemText ( TypeClothes_Grid, guiGridListGetSelectedItem ( TypeClothes_Grid ), 1 ) if ( tostring(Selected) ) then for i=1, 67 do clothe = getClothesByTypeIndex ( 0, i ) crow = guiGridListAddRow ( NameClothes_Grid ) guiGridListSetItemText ( NameClothes_Grid, crow, colname, tostring ( clothe ), false, false ) guiGridListSetItemText ( NameClothes_Grid, crow, colID, tonumber ( i ), false, false ) end end end) addEventHandler("onClientGUIClick",Clothes_Window, function (b) if b == "left" then if source == CloseClothesWindow then guiSetVisible(Clothes_Window,false) showCursor(false) end elseif source == BuyClothes then local Selected = guiGridListGetItemText ( NameClothes_Grid, guiGridListGetSelectedItem ( NameClothes_Grid ), 1 ) local Selected2 = guiGridListGetItemText ( NameClothes_Grid, guiGridListGetSelectedItem ( NameClothes_Grid ), 2 ) addPedClothes ( source, tostring(Selected2), "vest", Selected ) guiSetVisible(Clothes_Window,false) showCursor(false) end end)
-
How do i get Clothes texture from Index ? Delete that post I've Fixed thanks !!! Who Am I
-
How do i get Clothes texture from Index ?
-
Thanks! But Question,i can Add for e.g shoes like that ?: for i=1,37 do getClothesByTypeIndex ( 3, i ) end
-
Hello,Today I've made Clothes Shop for CJ only But there is One thing How to Get all Shirt (i think : use for .. inpairs...): That the URL https://wiki.multitheftauto.com/wiki/CJ_Clothes%5CShirt_(0)
-
hello,today I've made speedometer But there is one Problem,The Health of vehicle has number too long,how do i let it small like 500 health = getElementHealth(getPedOccupiedVehicle(localPlayer)) dxDrawText(""..tonumber(health).."",x*0.0125,y*0.85,x*0.5475,y*0.606666667,tocolor(0,255,0,255),1.3,Digital,"right","top",false,false,false)
-
i have fixed thanks to all i tried that if tonumber(SelectedSkin) then
-
Not work!! No one KNOW !!
-
not work Can you post the code? addEventHandler("onClientGUIClick",GUIEditor.window[1], function(b) if b == "left" then if source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) elseif source == GUIEditor.button[1] then local SelectedSkin = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if ( SelectedSkin ~= -1 ) then if getElementModel(localPlayer) ~= tonumber(SelectedSkin) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) triggerServerEvent("onBuy",localPlayer,tonumber(SelectedSkin)) else exports["TopBarChat"]:sendClientMessage ("#0000FF* #FF0000You already have that skin !",255,255,255,true) end else exports["TopBarChat"]:sendClientMessage ("#0000FF* #FF0000You must select a skin first !",255,255,255,true) end end end end )
-
Hello,Today i made skin shop How do i detect if player is not selected Any Row ? i tried that if ( SelectedSkin ~= nil ) then
-
ServerSide not added in meta.xml
-
Thanks we have fix it !
-
Hello,Skin shop .. There is one problem which is: Event won't add to ServerSide Server Side : addEvent("onBuy",true) addEventHandler("onBuy",root, function (skinID) if getPlayerMoney(source) >= 2000 then setElementModel(source,skinID) takePlayerMoney ( source, 2000 ) else outputChatBox("You don't have enough to buy a Skin") end end ) Client Side: local SelectedSkin = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if SelectedSkin then guiSetVisible(GUIEditor.window[1],false) showCursor(false) triggerServerEvent("onBuy",localPlayer,tonumber(SelectedSkin))
-
Thank you very much it's work
-
can you fix that plz !! local xml = getResourceConfig("skins.xml") local models = xmlNodeGetAttribute(xml, "id") local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText (GUIEditor.gridlist[1], row, skins, models, false, false )
-
Nope there is no problem i fixed it thanks
-
No one know ? it's so easy ! afaik
