Ryan123 Posted May 22, 2012 Posted May 22, 2012 why I don't see gui job?Someone can repair this script Jefferson: local marker = createMarker( 2035.1999511719, -1406.5, 16.200000762939, "Cylinder", 2, 6, 183, 248, 153) local skins = {"274", "275", "276"} function job () GUIEditor_Window[1] = guiCreateWindow(478,142,303,404,"Job Medic",false) GUIEditor_Button[1] = guiCreateButton(20,348,108,43,"Take Job",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(165,348,108,43,"Cancel",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(18,31,268,188,"To take Medic team job, press Take job.\n\nIf you don't want to, press Cancel.",false,GUIEditor_Window[1]) GUIEditor_Grid[1] = guiCreateGridList(26,229,255,115,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) skins = guiGridListAddColumn(GUIEditor_Grid[1],"Skins",0.85) for index, Skins in ipairs(Skins) do local row = guiGridListAddRow (GUIEditor_Grid[1]) guiGridListSetItemText ( GUIEditor_Grid[1], row, skins, tostring(IDSkins), false, false ) end end for i,marker in ipairs(markers) do addEventHandler("onClientMarkerHit", marker, function ( hitElement ) if (hitElement == localPlayer) then Job ( hitElement ) if (MainGui ~= nil) then guiSetVisible(MainGui, true) showCursor(true) guiSetInputEnabled(true) setElementFrozen(hitElement, true) end end end ) end addEventHandler("onClientGUIClick", root, function () if (source == GUIEditor_Button[1]) then local row,col = guiGridListGetSelectedItem(GUIEditor_Grid[1]) if (row and col and row ~= -1 and col ~= -1) then local vehicleName = guiGridListGetItemText(GUIEditor_Grid[1], row, 1) if vehicleName == "274" then triggerServerEvent("spawn274",localPlayer,vehicleName) elseif vehicleName == "275" then triggerServerEvent("spawn275",localPlayer,vehicleName) elseif vehicleName == "276" then triggerServerEvent("spawn276",localPlayer,vehicleName) end else outputChatBox("Error: Please, select a Skin of list.",255,0,0) end elseif (source == GUIEditor_Button[2]) then triggerEvent("closeWindow", root ) end end) addEventHandler("onClientGUIDoubleClick", root, function () if ( source == GUIEditor_Grid[1] ) then local row,col = guiGridListGetSelectedItem(GUIEditor_Grid[1]) if (row and col and row ~= -1 and col ~= -1) then local vehicleName = guiGridListGetItemText(GUIEditor_Grid[1], row, 1) if vehicleName == "274" then triggerServerEvent("spawn274",localPlayer,vehicleName) elseif vehicleName == "275" then triggerServerEvent("spawn275",localPlayer,vehicleName) elseif vehicleName == "276" then triggerServerEvent("spawn276",localPlayer,vehicleName) end end end end ) for i,marker in ipairs(markers) do addEventHandler("onClientMarkerLeave", marker, function () triggerEvent("closeWindow", root ) end ) end addEventHandler("onClientPlayerWasted", root, function () triggerEvent("closeWindow", root ) end ) addEvent("closeWindow", true) addEventHandler("closeWindow", root, function () guiSetVisible(MainGui, false) showCursor(false) guiSetInputEnabled(false) setElementFrozen(localPlayer, false) end ) Server: function createMedicTeam () MedicTeam = createTeam ("Emergency", 6, 183, 248) end addEventHandler ("onResourceStart", resourceRoot, createMedicTeam) function joinMedic() setPlayerTeam(source,MedicTeam) setElementData( source, "Occupation", "Medic", true ) outputChatBox("You are now Medic.",source,0,255,0) end addEvent("setMedic", true) addEventHandler("setMedic",root,joinMedic) addEvent("spawn274", true) addEventHandler("spawn274", root, function () setElementData(source, 274) triggerClientEvent("closeWindow", root) end ) addEvent("spawn275", true) addEventHandler("spawn275", root, function () setElementData(source, 275) triggerClientEvent("closeWindow", root) end ) addEvent("spawn276", true) addEventHandler("spawn276", root, function () setElementData(source, 276) triggerClientEvent("closeWindow", root) end )
X-SHADOW Posted May 22, 2012 Posted May 22, 2012 local marker = createMarker( 2035.1999511719, -1406.5, 16.200000762939, "Cylinder", 2, 6, 183, 248, 153) local skins = {"274", "275", "276"} GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} function job () GUIEditor_Window[1] = guiCreateWindow(478,142,303,404,"Job Medic",false) GUIEditor_Button[1] = guiCreateButton(20,348,108,43,"Take Job",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(165,348,108,43,"Cancel",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(18,31,268,188,"To take Medic team job, press Take job.\n\nIf you don't want to, press Cancel.",false,GUIEditor_Window[1]) GUIEditor_Grid[1] = guiCreateGridList(26,229,255,115,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) skins = guiGridListAddColumn(GUIEditor_Grid[1],"Skins",0.85) for index, Skins in ipairs(Skins) do local row = guiGridListAddRow (GUIEditor_Grid[1]) guiGridListSetItemText ( GUIEditor_Grid[1], row, skins, tostring(IDSkins), false, false ) end end for i,marker in ipairs(markers) do addEventHandler("onClientMarkerHit", marker, function ( hitElement ) if (hitElement == localPlayer) then Job ( hitElement ) if (MainGui ~= nil) then guiSetVisible(MainGui, true) showCursor(true) guiSetInputEnabled(true) setElementFrozen(hitElement, true) end end end ) end addEventHandler("onClientGUIClick", root, function () if (source == GUIEditor_Button[1]) then local row,col = guiGridListGetSelectedItem(GUIEditor_Grid[1]) if (row and col and row ~= -1 and col ~= -1) then local vehicleName = guiGridListGetItemText(GUIEditor_Grid[1], row, 1) if vehicleName == "274" then triggerServerEvent("spawn274",localPlayer,vehicleName) elseif vehicleName == "275" then triggerServerEvent("spawn275",localPlayer,vehicleName) elseif vehicleName == "276" then triggerServerEvent("spawn276",localPlayer,vehicleName) end else outputChatBox("Error: Please, select a Skin of list.",255,0,0) end elseif (source == GUIEditor_Button[2]) then triggerEvent("closeWindow", root ) end end) addEventHandler("onClientGUIDoubleClick", root, function () if ( source == GUIEditor_Grid[1] ) then local row,col = guiGridListGetSelectedItem(GUIEditor_Grid[1]) if (row and col and row ~= -1 and col ~= -1) then local vehicleName = guiGridListGetItemText(GUIEditor_Grid[1], row, 1) if vehicleName == "274" then triggerServerEvent("spawn274",localPlayer,vehicleName) elseif vehicleName == "275" then triggerServerEvent("spawn275",localPlayer,vehicleName) elseif vehicleName == "276" then triggerServerEvent("spawn276",localPlayer,vehicleName) end end end end ) for i,marker in ipairs(markers) do addEventHandler("onClientMarkerLeave", marker, function () triggerEvent("closeWindow", root ) end ) end addEventHandler("onClientPlayerWasted", root, function () triggerEvent("closeWindow", root ) end ) addEvent("closeWindow", true) addEventHandler("closeWindow", root, function () guiSetVisible(MainGui, false) showCursor(false) guiSetInputEnabled(false) setElementFrozen(localPlayer, false) end ) My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
DNL291 Posted May 22, 2012 Posted May 22, 2012 You again with my client side code. next time do not ask for help with scripts downloaded from a server. Please do not PM me with scripting related question nor support, use the forums instead.
X-SHADOW Posted May 22, 2012 Posted May 22, 2012 You again with my client side code.next time do not ask for help with scripts downloaded from a server. HaHa God i hate the pepole who steal My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
Jaysds1 Posted May 22, 2012 Posted May 22, 2012 You again with my client side code.next time do not ask for help with scripts downloaded from a server. You could compile them with LUAC: viewtopic.php?f=108&t=33905 or delete them when they're transferred to the client: viewtopic.php?f=148&t=43499 viewtopic.php?f=148&t=36847 My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
DNL291 Posted May 22, 2012 Posted May 22, 2012 You again with my client side code.next time do not ask for help with scripts downloaded from a server. You could compile them with LUAC: viewtopic.php?f=108&t=33905 or delete them when they're transferred to the client: viewtopic.php?f=148&t=43499 viewtopic.php?f=148&t=36847 I compile my scripts and use fileDelete, actually I made this script to a friend, I found my code here and asked him if he sent the script to someone, he said he did not. Dont wanna start a fight because of this script, just do not like people who steal scripts. Please do not PM me with scripting related question nor support, use the forums instead.
Jaysds1 Posted May 22, 2012 Posted May 22, 2012 He probably didn't compile it My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
Stanley Sathler Posted May 22, 2012 Posted May 22, 2012 Well, is not right steal scripts from someone. But c'mon guys, we must be free and make free codes. We must colaborate with the community. Software Engineer & Entrepreneur • Running Lustrel and VilarikA • Highly engaged on open source community
Jaysds1 Posted May 22, 2012 Posted May 22, 2012 lol, that's kinda tru but think about this... you work so hard on your script then someone of another server comes and takes it just to make theirs better... After when you release your server, some people are going to say you copied from another server, and you would tell them that they stole it from you but no one believes you My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
Ryan123 Posted May 23, 2012 Author Posted May 23, 2012 I DIDN'T COPY YOUR CLIENT-SIDE.Now have one player with script like you and you will say "this script is my.He stolen". PS:Sorry for caps lock
Monty Posted May 23, 2012 Posted May 23, 2012 THIS IS MY SCRIPT! I'M THE ONLY OWNER! HERE THE ORIGINAL ONE https://community.multitheftauto.com/ind ... ls&id=4846 ANY SCRIPT REQUEST FOR FREE HERE: http://www.stolka.altervista.org
Celsius Posted May 23, 2012 Posted May 23, 2012 if you need help just ask but don't think that we are stupid... do not say that a script is your when it isn't Profesional mapper My in-game name is Celsius, I'll help you if you need, just ask for it.
Ryan123 Posted May 23, 2012 Author Posted May 23, 2012 okay, if you don't want help me and say this script was stole, I will request /lock
Monty Posted May 23, 2012 Posted May 23, 2012 ryan you stole this script from me ANY SCRIPT REQUEST FOR FREE HERE: http://www.stolka.altervista.org
Ryan123 Posted May 23, 2012 Author Posted May 23, 2012 no, I didn't stole your script.This script was made by and I don't know this scripts was existent. Edit:I don't want discussion about "stole".
Celsius Posted May 23, 2012 Posted May 23, 2012 downloading a script from the comunity is not stoling it but don't say that the script is your or you won't get the help you are looking for! Profesional mapper My in-game name is Celsius, I'll help you if you need, just ask for it.
Monty Posted May 24, 2012 Posted May 24, 2012 you LIEEEEE ANY SCRIPT REQUEST FOR FREE HERE: http://www.stolka.altervista.org
Castillo Posted May 24, 2012 Posted May 24, 2012 I'm locking this topic. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts