Arsilex Posted June 17, 2012 Share Posted June 17, 2012 Como se puede hacer para que el color selection de freeroam se pongan en mi gui de mecanicos? Copio el script de freeroam o como es Link to comment
iFoReX Posted June 17, 2012 Share Posted June 17, 2012 pekio creo que hay un archivo en freeroam que se llama colorpicker.lua, eso talvez te pueda ayudar Link to comment
Arsilex Posted June 17, 2012 Author Share Posted June 17, 2012 como podria añadirlo a mi GUI function Panel() Panel = guiCreateWindow(749,180,617,462,"Gui de mecanico",false) guiSetAlpha(Panel,0.69999998807907) guiWindowSetMovable(Panel,true) guiWindowSetSizable(Panel,false) Repair = guiCreateButton(12,29,84,39,"Reparar",false,Panel) addEventHandler ( "onClientGUIClick", Repair, RepararVehiculo, false ) guiSetAlpha(Repair,0.69999998807907) guiSetFont(Repair,"default-bold-small") Chapa1 = guiCreateButton(115,29,84,39,"Chapa1",false,Panel) addEventHandler ( "onClientGUIClick", Chapa1, Cambiarpintura1, false ) guiSetAlpha(Chapa1,0.69999998807907) guiSetFont(Chapa1,"default-bold-small") Chapa2 = guiCreateButton(216,30,84,39,"Chapa2",false,Panel) addEventHandler ( "onClientGUIClick", Chapa2, Cambiarpintura2, false ) guiSetAlpha(Chapa2,0.69999998807907) guiSetFont(Chapa2,"default-bold-small") Chapa3 = guiCreateButton(322,30,84,39,"Chapa3",false,Panel) addEventHandler ( "onClientGUIClick", Chapa3, Cambiarpintura3, false ) guiSetAlpha(Chapa3,0.69999998807907) guiSetFont(Chapa3,"default-bold-small") Cerrar = guiCreateButton(140,407,84,42,"Cerrar",false,Panel) addEventHandler ( "onClientGUIClick", Cerrar, Exit, false ) guiSetFont(Cerrar,"default-bold-small") Info = guiCreateMemo(436,24,172,428,"Informacion de precios\n\nReparar = 100$\nChapas = 250$\nNitrox10 = 750$",false,Panel) guiSetAlpha(Info,0.69999998807907) Sopiler = guiCreateButton(12,88,84,39,"Nitrox10",false,Panel) guiSetAlpha(Sopiler,0.69999998807907) guiSetFont(Sopiler,"default-bold-small") addEventHandler ( "onClientGUIClick", Sopiler, Sopiler1, false ) Saltoar = guiCreateButton(114,88,84,39,"Hydraulics",false,Panel) guiSetFont(Saltoar,"default-bold-small") guiSetAlpha(Saltoar,0.69999998807907) addEventHandler ( "onClientGUIClick", Saltoar, Salto, false ) Rued = guiCreateButton(216,88,84,39,"Ruedas",false,Panel) guiSetFont(Rued,"default-bold-small") guiSetAlpha(Rued,0.69999998807907) addEventHandler ( "onClientGUIClick", Rued, RuedasPanel, false ) Mejoras = guiCreateButton(322,88,84,39,"Tunning",false,Panel) guiSetFont(Mejoras,"default-bold-small") guiSetAlpha(Mejoras,0.69999998807907) addEventHandler ( "onClientGUIClick", Mejoras, Tunning, false ) end addCommandHandler ( "guimecanico", Panel ) function RepararVehiculo () triggerServerEvent("onFix", getLocalPlayer()) end function Cambiarpintura1 () triggerServerEvent("onPintura", getLocalPlayer()) end function Cambiarpintura2 () triggerServerEvent("onPintura2", getLocalPlayer()) end function Cambiarpintura3 () triggerServerEvent("onPintura3", getLocalPlayer()) end function Exit () guiSetVisible (Panel, not guiGetVisible ( Panel ) ) end function Sopiler1 () player = localPlayer local price_nitro10x = 0 money = getPlayerMoney (source) if (money >= price_nitro10x) and getPedOccupiedVehicle(player) then outputChatBox ("Instalo un nitro x10 en el coche", 255, 255, 255, true) takePlayerMoney(price_nitro10x) addVehicleUpgrade( getPedOccupiedVehicle(player), 1010 ) end end function Salto () player = localPlayer local price_hydraulics = 0 money = getPlayerMoney (source) if (money >= price_hydraulics) and getPedOccupiedVehicle(player) then takePlayerMoney(price_hydraulics) addVehicleUpgrade( getPedOccupiedVehicle(player), 1087 ) elseif not getPedOccupiedVehicle(player) then outputChatBox("You should be in a vehicle.", 255, 0, 0) end end function RuedasPanel() PanelRuedas = guiCreateWindow(290,201,357,410,"Ruedas",false) Rueda1 = guiCreateButton(13,30,67,36,"1",false,PanelRuedas) addEventHandler ( "onClientGUIClick", Rueda1, Ruedaa1, false ) Rueda2 = guiCreateButton(100,30,67,36,"2",false,PanelRuedas) addEventHandler ( "onClientGUIClick", Rueda2, Ruedaa2, false ) Rueda3 = guiCreateButton(183,30,67,36,"3",false,PanelRuedas) addEventHandler ( "onClientGUIClick", Rueda3, Ruedaa3, false ) Rueda5 = guiCreateButton(15,82,67,36,"5",false,PanelRuedas) addEventHandler ( "onClientGUIClick", Rueda5, Ruedaa5, false ) Rueda8 = guiCreateButton(271,83,67,36,"8",false,PanelRuedas) addEventHandler ( "onClientGUIClick", Rueda8, Ruedaa8, false ) Rueda7 = guiCreateButton(184,82,67,36,"7",false,PanelRuedas) addEventHandler ( "onClientGUIClick", Rueda7, Ruedaa7, false ) Rueda6 = guiCreateButton(100,82,67,36,"6",false,PanelRuedas) addEventHandler ( "onClientGUIClick", Rueda6, Ruedaa6, false ) Rueda4 = guiCreateButton(271,29,67,36,"4",false,PanelRuedas) addEventHandler ( "onClientGUIClick", Rueda4, Ruedaa4, false ) Rueda12 = guiCreateButton(271,129,67,36,"12",false,PanelRuedas) addEventHandler ( "onClientGUIClick", Rueda12, Ruedaa12, false ) Rueda11 = guiCreateButton(183,128,67,36,"11",false,PanelRuedas) addEventHandler ( "onClientGUIClick", Rueda11, Ruedaa11, false ) Rueda10 = guiCreateButton(99,129,67,36,"10",false,PanelRuedas) addEventHandler ( "onClientGUIClick", Rueda10, Ruedaa10, false ) Rueda9 = guiCreateButton(13,130,67,36,"9",false,PanelRuedas) addEventHandler ( "onClientGUIClick", Rueda9, Ruedaa9, false ) Rueda13 = guiCreateButton(132,193,67,36,"13",false,PanelRuedas) addEventHandler ( "onClientGUIClick", Rueda13, Ruedaa13, false ) Salirr = guiCreateButton(58,314,223,53,"X",false,PanelRuedas) addEventHandler ( "onClientGUIClick", Salirr, Salir, false ) end function Ruedaa1() player = localPlayer local price_wheels = 0 money = getPlayerMoney (source) if (money >= price_wheels) and getPedOccupiedVehicle(player) then takePlayerMoney(price_wheels) addVehicleUpgrade( getPedOccupiedVehicle(player), 1073 ) elseif not getPedOccupiedVehicle(player) then outputChatBox("You should be in a vehicle.", 255, 0, 0) end end function Ruedaa2() player = localPlayer local price_wheels = 0 money = getPlayerMoney (source) if (money >= price_wheels) and getPedOccupiedVehicle(player) then takePlayerMoney(price_wheels) addVehicleUpgrade( getPedOccupiedVehicle(player), 1074 ) elseif not getPedOccupiedVehicle(player) then outputChatBox("You should be in a vehicle.", 255, 0, 0) end end function Ruedaa3() player = localPlayer local price_wheels = 0 money = getPlayerMoney (source) if (money >= price_wheels) and getPedOccupiedVehicle(player) then takePlayerMoney(price_wheels) addVehicleUpgrade( getPedOccupiedVehicle(player), 1075 ) elseif not getPedOccupiedVehicle(player) then outputChatBox("You should be in a vehicle.", 255, 0, 0) end end function Ruedaa5() player = localPlayer local price_wheels = 0 money = getPlayerMoney (source) if (money >= price_wheels) and getPedOccupiedVehicle(player) then takePlayerMoney(price_wheels) addVehicleUpgrade( getPedOccupiedVehicle(player), 1076 ) elseif not getPedOccupiedVehicle(player) then outputChatBox("You should be in a vehicle.", 255, 0, 0) end end function Ruedaa8() player = localPlayer local price_wheels = 0 money = getPlayerMoney (source) if (money >= price_wheels) and getPedOccupiedVehicle(player) then takePlayerMoney(price_wheels) addVehicleUpgrade( getPedOccupiedVehicle(player), 1077 ) elseif not getPedOccupiedVehicle(player) then outputChatBox("You should be in a vehicle.", 255, 0, 0) end end function Ruedaa7() player = localPlayer local price_wheels = 0 money = getPlayerMoney (source) if (money >= price_wheels) and getPedOccupiedVehicle(player) then takePlayerMoney(price_wheels) addVehicleUpgrade( getPedOccupiedVehicle(player), 1078 ) elseif not getPedOccupiedVehicle(player) then outputChatBox("You should be in a vehicle.", 255, 0, 0) end end function Ruedaa6() player = localPlayer local price_wheels = 0 money = getPlayerMoney (source) if (money >= price_wheels) and getPedOccupiedVehicle(player) then takePlayerMoney(price_wheels) addVehicleUpgrade( getPedOccupiedVehicle(player), 1079 ) elseif not getPedOccupiedVehicle(player) then outputChatBox("You should be in a vehicle.", 255, 0, 0) end end function Ruedaa4() player = localPlayer local price_wheels = 0 money = getPlayerMoney (source) if (money >= price_wheels) and getPedOccupiedVehicle(player) then takePlayerMoney(price_wheels) addVehicleUpgrade( getPedOccupiedVehicle(player), 1080 ) elseif not getPedOccupiedVehicle(player) then outputChatBox("You should be in a vehicle.", 255, 0, 0) end end function Ruedaa12() player = localPlayer local price_wheels = 0 money = getPlayerMoney (source) if (money >= price_wheels) and getPedOccupiedVehicle(player) then takePlayerMoney(price_wheels) addVehicleUpgrade( getPedOccupiedVehicle(player), 1081 ) elseif not getPedOccupiedVehicle(player) then outputChatBox("You should be in a vehicle.", 255, 0, 0) end end function Ruedaa11() player = localPlayer local price_wheels = 0 money = getPlayerMoney (source) if (money >= price_wheels) and getPedOccupiedVehicle(player) then takePlayerMoney(price_wheels) addVehicleUpgrade( getPedOccupiedVehicle(player), 1082 ) elseif not getPedOccupiedVehicle(player) then outputChatBox("You should be in a vehicle.", 255, 0, 0) end end function Ruedaa10() player = localPlayer local price_wheels = 0 money = Link to comment
Recommended Posts