
OrbTanT
Members-
Posts
226 -
Joined
-
Last visited
Everything posted by OrbTanT
-
It was not, I am using this script in the part of the Client to create the marker of the GUI, you can place this marker within a store? GUIEditor = { tab = {}, staticimage = {}, tabpanel = {}, button = {}, window = {} } function makeGui ( ) showCursor ( true ) GUIEditor.window[1] = guiCreateWindow(270, 100, 800, 600, "Ammunation", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(130, 40, 500, 500, ":ammunation/files/mira.png", false, GUIEditor.window[1]) GUIEditor.tabpanel[1] = guiCreateTabPanel(25, 20, 750, 565, false, GUIEditor.window[1]) guiSetAlpha(GUIEditor.tabpanel[1], 0.90) guiSetAlpha(GUIEditor.staticimage[1], 0.99) GUIEditor.tab[1] = guiCreateTab("Armas", GUIEditor.tabpanel[1]) GUIEditor.staticimage[15] = guiCreateStaticImage(50, 50, 100, 100, ":ammunation/files/8.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[16] = guiCreateStaticImage(190, 380, 100, 100, ":ammunation/files/2.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[17] = guiCreateStaticImage(330, 215, 100, 100, ":ammunation/files/11.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[18] = guiCreateStaticImage(470, 50, 100, 100, ":ammunation/files/5.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[19] = guiCreateStaticImage(610, 50, 100, 100, ":ammunation/files/6.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[20] = guiCreateStaticImage(50, 215, 100, 100, ":ammunation/files/9.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[21] = guiCreateStaticImage(50, 380, 100, 100, ":ammunation/files/10.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[22] = guiCreateStaticImage(190, 50, 100, 100, ":ammunation/files/4.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[24] = guiCreateStaticImage(190, 215, 100, 100, ":ammunation/files/1.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[25] = guiCreateStaticImage(330, 50, 100, 100, ":ammunation/files/12.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[26] = guiCreateStaticImage(330, 380, 100, 100, ":ammunation/files/13.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[27] = guiCreateStaticImage(470, 215, 100, 100, ":ammunation/files/7.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[23] = guiCreateStaticImage(610, 215, 100, 100, ":ammunation/files/3.png", false, GUIEditor.tab[1]) b1 = guiCreateButton(50, 155, 100, 50, "Pistol", false, GUIEditor.tab[1]) guiSetProperty(b1, "NormalTextColour", "FFFFFFFF") b2 = guiCreateButton(190, 155, 100, 50, "Shotgun", false, GUIEditor.tab[1]) guiSetProperty(b2, "NormalTextColour", "FFFFFFFF") b3 = guiCreateButton(330, 155, 100, 50, "Uzi", false, GUIEditor.tab[1]) guiSetProperty(b3, "NormalTextColour", "FFFFFFFF") b4 = guiCreateButton(470, 155, 100, 50, "M4", false, GUIEditor.tab[1]) guiSetProperty(b4, "NormalTextColour", "FFFFFFFF") b5 = guiCreateButton(610, 155, 100, 50, "Sniper Rifle", false, GUIEditor.tab[1]) guiSetProperty(b5, "NormalTextColour", "FFFFFFFF") b6 = guiCreateButton(50, 320, 100, 50, "Silenced Pistol", false, GUIEditor.tab[1]) guiSetProperty(b6, "NormalTextColour", "FFFFFFFF") b7 = guiCreateButton(190, 320, 100, 50, "SPAZ-12 Combat", false, GUIEditor.tab[1]) guiSetProperty(b7, "NormalTextColour", "FFFFFFFF") b8 = guiCreateButton(330, 320, 100, 50, "TEC-9", false, GUIEditor.tab[1]) guiSetProperty(b8, "NormalTextColour", "FFFFFFFF") b9 = guiCreateButton(470, 320, 100, 50, "AK-47", false, GUIEditor.tab[1]) guiSetProperty(b9, "NormalTextColour", "FFFFFFFF") b10 = guiCreateButton(610, 320, 100, 50, "Country Rifle", false, GUIEditor.tab[1]) guiSetProperty(b10, "NormalTextColour", "FFFFFFFF") b11 = guiCreateButton(50, 480, 100, 50, "Desert Eagle", false, GUIEditor.tab[1]) guiSetProperty(b11, "NormalTextColour", "FFFFFFFF") b12 = guiCreateButton(190, 480, 100, 50, "Sawn-Off", false, GUIEditor.tab[1]) guiSetProperty(b12, "NormalTextColour", "FFFFFFFF") b13 = guiCreateButton(330, 480, 100, 50, "MP5", false, GUIEditor.tab[1]) guiSetProperty(b13, "NormalTextColour", "FFFFFFFF") GUIEditor.button[15] = guiCreateButton(50, 15, 100, 35, "HandGuns", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[15], "NormalTextColour", "FFFFFFFF") GUIEditor.button[16] = guiCreateButton(190, 15, 100, 35, "ShotGuns", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[16], "NormalTextColour", "FFFFFFFF") GUIEditor.button[17] = guiCreateButton(330, 15, 100, 35, "Sub-Machine", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[17], "NormalTextColour", "FFFFFFFF") GUIEditor.button[18] = guiCreateButton(470, 15, 100, 35, "Assault Rifles", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[18], "NormalTextColour", "FFFFFFFF") GUIEditor.button[19] = guiCreateButton(610, 15, 100, 35, "Rifles", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[19], "NormalTextColour", "FFFFFFFF") GUIEditor.button[20] = guiCreateButton(630, 475, 100, 50, "Sair", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[20], "NormalTextColour", "FFFF0000") GUIEditor.tab[2] = guiCreateTab("Equipamentos", GUIEditor.tabpanel[1]) GUIEditor.staticimage[13] = guiCreateStaticImage(50, 50, 100, 100, ":ammunation/files/colete.png", false, GUIEditor.tab[2]) GUIEditor.staticimage[14] = guiCreateStaticImage(190, 45, 110, 110, ":ammunation/files/16.png", false, GUIEditor.tab[2]) GUIEditor.button[7] = guiCreateButton(50, 10, 100, 35, "Colete", false, GUIEditor.tab[2]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFFFFFFF") GUIEditor.button[8] = guiCreateButton(190, 10, 100, 35, "Paraquedas", false, GUIEditor.tab[2]) guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFFFFFFF") GUIEditor.button[9] = guiCreateButton(50, 155, 100, 50, "Comprar", false, GUIEditor.tab[2]) guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FFFFFFFF") GUIEditor.button[10] = guiCreateButton(190, 155, 100, 50, "Comprar", false, GUIEditor.tab[2]) guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FFFFFFFF") GUIEditor.button[11] = guiCreateButton(630, 475, 100, 50, "Sair", false, GUIEditor.tab[2]) guiSetProperty(GUIEditor.button[11], "NormalTextColour", "FFFF0000") end addEventHandler("onClientRender", root, function() dxDrawRectangle(466, 207, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("", 488, 217, 488, 217, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false) dxDrawRectangle(466, 207, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("", 488, 217, 488, 217, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false) dxDrawRectangle(466, 207, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("", 488, 217, 488, 217, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false) dxDrawRectangle(466, 207, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("", 488, 217, 488, 217, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false) dxDrawRectangle(466, 207, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("", 488, 217, 488, 217, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false) dxDrawRectangle(466, 207, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("", 488, 217, 488, 217, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false) end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b1 ) then triggerServerEvent("pistol",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b2 ) then triggerServerEvent("shotgun",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b3 ) then triggerServerEvent("uzi",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b4 ) then triggerServerEvent("m4",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b5 ) then triggerServerEvent("sniper",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b6 ) then triggerServerEvent("spistol",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b7 ) then triggerServerEvent("combat",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b8 ) then triggerServerEvent("tec",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b9 ) then triggerServerEvent("ak",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b10 ) then triggerServerEvent("country",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b11 ) then triggerServerEvent("eagle",getLocalPlayer()) end end )
-
Ja I tried and i could not move the player inside the store
-
As I leave this ammunation that I created within an interior, For that the player needs to go inside the store of weapons to buy the vest for example.
-
Everything went well, thank you, in the case how do I add within a interior, never understood how adds within interior.
-
It is no longer showing the error, thank you, more could help me in one more thing, I think that now it is in the server side, if I buy the vest for example appears to all that I bought the vest, How do I appear only for the player to buy the items addEvent("parachute",true) addEventHandler("parachute",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 100) then takePlayerMoney(source,100) giveWeapon ( source , 46, 1) setPedWeaponSlot(source, getSlotFromWeapon(46)) local name = getPlayerName(source) outputChatBox ( "#ffffff" .. name .. " #ff0000 Você comprou Parachute", getRootElement(), 255, 0, 0, true ) else outputChatBox("#ff0000 Dinheiro insuficiente", source, 255, 0, 0, true) end end ) addEvent("colete",true) addEventHandler("colete",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 100) then takePlayerMoney(source,100) setPedArmor ( source, 100 ) local name = getPlayerName(source) outputChatBox ( "#ffffff" .. name .. " #ff0000 Você comprou Colete", getRootElement(), 255, 0, 0, true ) else outputChatBox("#ff0000 Dinheiro insuficiente", source, 255, 0, 0, true) end end ) addEvent("pistol",true) addEventHandler("pistol",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 100) then takePlayerMoney(source,100) giveWeapon ( source , 22,700 ) setPedWeaponSlot(source, getSlotFromWeapon(22)) local name = getPlayerName(source) outputChatBox ( "#ffffff" .. name .. " #ff0000 Você comprou Pistol", getRootElement(), 255, 0, 0, true ) else outputChatBox("#ff0000 Dinheiro insuficiente", source, 255, 0, 0, true) end end ) addEvent("shotgun",true) addEventHandler("shotgun",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 100) then takePlayerMoney(source,100) giveWeapon ( source , 25,700 ) setPedWeaponSlot(source, getSlotFromWeapon(25)) local name = getPlayerName(source) outputChatBox ( "#ffffff" .. name .. " #ff0000 Você comprou Shotgun", getRootElement(), 255, 0, 0, true ) else outputChatBox("#ff0000 Dinheiro insuficiente", source, 255, 0, 0, true) end end ) addEvent("uzi",true) addEventHandler("uzi",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 100) then takePlayerMoney(source,100) giveWeapon ( source , 28,700 ) setPedWeaponSlot(source, getSlotFromWeapon(28)) local name = getPlayerName(source) outputChatBox ( "#ffffff" .. name .. " #ff0000 Você comprou Uzi", getRootElement(), 255, 0, 0, true ) else outputChatBox("#ff0000 Dinheiro insuficiente", source, 255, 0, 0, true) end end ) addEvent("m4",true) addEventHandler("m4",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 100) then takePlayerMoney(source,100) giveWeapon ( source , 31,700 ) setPedWeaponSlot(source, getSlotFromWeapon(31)) local name = getPlayerName(source) outputChatBox ( "#ffffff" .. name .. " #ff0000 Você comprou M4", getRootElement(), 255, 0, 0, true ) else outputChatBox("#ff0000 Dinheiro insuficiente", source, 255, 0, 0, true) end end ) addEvent("sniper",true) addEventHandler("sniper",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 100) then takePlayerMoney(source,100) giveWeapon ( source , 34,700 ) setPedWeaponSlot(source, getSlotFromWeapon(34)) local name = getPlayerName(source) outputChatBox ( "#ffffff" .. name .. " #ff0000 Você comprou Sniper Rifle", getRootElement(), 255, 0, 0, true ) else outputChatBox("#ff0000 Dinheiro insuficiente", source, 255, 0, 0, true) end end ) addEvent("spistol",true) addEventHandler("spistol",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 100) then takePlayerMoney(source,100) giveWeapon ( source , 23,700 ) setPedWeaponSlot(source, getSlotFromWeapon(23)) local name = getPlayerName(source) outputChatBox ( "#ffffff" .. name .. " #ff0000 Você comprou Silenced Pistol", getRootElement(), 255, 0, 0, true ) else outputChatBox("#ff0000 Dinheiro insuficiente", source, 255, 0, 0, true) end end ) addEvent("combat",true) addEventHandler("combat",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 100) then takePlayerMoney(source,100) giveWeapon ( source , 27,700 ) setPedWeaponSlot(source, getSlotFromWeapon(27)) local name = getPlayerName(source) outputChatBox ( "#ffffff" .. name .. " #ff0000 Você comprou SPAZ-12 Combat Shotgun ", getRootElement(), 255, 0, 0, true ) else outputChatBox("#ff0000 Dinheiro insuficiente", source, 255, 0, 0, true) end end )
-
line 355, This error only appears when I can within the marker
-
Good i've created a ammunation for my server, then I leave to open the ammu when entering within the marker displays the following error: This error does not disturb anything to open and ammunation, more I would like to know why that is occurring this error and how to resolve. client GUIEditor = { tab = {}, staticimage = {}, tabpanel = {}, button = {}, window = {} } addEventHandler("onClientMarkerHit", resourceRoot, function() showCursor ( true ) GUIEditor.window[1] = guiCreateWindow(270, 100, 800, 600, "Ammunation", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(130, 40, 500, 500, ":ammunation1/files/mira.png", false, GUIEditor.window[1]) GUIEditor.tabpanel[1] = guiCreateTabPanel(25, 20, 750, 565, false, GUIEditor.window[1]) guiSetAlpha(GUIEditor.tabpanel[1], 0.90) guiSetAlpha(GUIEditor.staticimage[1], 0.99) GUIEditor.tab[1] = guiCreateTab("Armas", GUIEditor.tabpanel[1]) GUIEditor.staticimage[15] = guiCreateStaticImage(50, 50, 100, 100, ":ammunation1/files/8.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[16] = guiCreateStaticImage(190, 380, 100, 100, ":ammunation1/files/2.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[17] = guiCreateStaticImage(330, 215, 100, 100, ":ammunation1/files/11.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[18] = guiCreateStaticImage(470, 50, 100, 100, ":ammunation1/files/5.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[19] = guiCreateStaticImage(610, 50, 100, 100, ":ammunation1/files/6.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[20] = guiCreateStaticImage(50, 215, 100, 100, ":ammunation1/files/9.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[21] = guiCreateStaticImage(50, 380, 100, 100, ":ammunation1/files/10.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[22] = guiCreateStaticImage(190, 50, 100, 100, ":ammunation1/files/4.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[24] = guiCreateStaticImage(190, 215, 100, 100, ":ammunation1/files/1.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[25] = guiCreateStaticImage(330, 50, 100, 100, ":ammunation1/files/12.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[26] = guiCreateStaticImage(330, 380, 100, 100, ":ammunation1/files/13.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[27] = guiCreateStaticImage(470, 215, 100, 100, ":ammunation1/files/7.png", false, GUIEditor.tab[1]) GUIEditor.staticimage[23] = guiCreateStaticImage(610, 215, 100, 100, ":ammunation1/files/3.png", false, GUIEditor.tab[1]) b1 = guiCreateButton(50, 155, 100, 50, "Pistol", false, GUIEditor.tab[1]) guiSetProperty(b1, "NormalTextColour", "FFFFFFFF") b2 = guiCreateButton(190, 155, 100, 50, "Shotgun", false, GUIEditor.tab[1]) guiSetProperty(b2, "NormalTextColour", "FFFFFFFF") b3 = guiCreateButton(330, 155, 100, 50, "Uzi", false, GUIEditor.tab[1]) guiSetProperty(b3, "NormalTextColour", "FFFFFFFF") b4 = guiCreateButton(470, 155, 100, 50, "M4", false, GUIEditor.tab[1]) guiSetProperty(b4, "NormalTextColour", "FFFFFFFF") b5 = guiCreateButton(610, 155, 100, 50, "Sniper Rifle", false, GUIEditor.tab[1]) guiSetProperty(b5, "NormalTextColour", "FFFFFFFF") b6 = guiCreateButton(50, 320, 100, 50, "Silenced Pistol", false, GUIEditor.tab[1]) guiSetProperty(b6, "NormalTextColour", "FFFFFFFF") b7 = guiCreateButton(190, 320, 100, 50, "SPAZ-12 Combat", false, GUIEditor.tab[1]) guiSetProperty(b7, "NormalTextColour", "FFFFFFFF") b8 = guiCreateButton(330, 320, 100, 50, "TEC-9", false, GUIEditor.tab[1]) guiSetProperty(b8, "NormalTextColour", "FFFFFFFF") b9 = guiCreateButton(470, 320, 100, 50, "AK-47", false, GUIEditor.tab[1]) guiSetProperty(b9, "NormalTextColour", "FFFFFFFF") b10 = guiCreateButton(610, 320, 100, 50, "Country Rifle", false, GUIEditor.tab[1]) guiSetProperty(b10, "NormalTextColour", "FFFFFFFF") b11 = guiCreateButton(50, 480, 100, 50, "Desert Eagle", false, GUIEditor.tab[1]) guiSetProperty(b11, "NormalTextColour", "FFFFFFFF") b12 = guiCreateButton(190, 480, 100, 50, "Sawn-Off", false, GUIEditor.tab[1]) guiSetProperty(b12, "NormalTextColour", "FFFFFFFF") b13 = guiCreateButton(330, 480, 100, 50, "MP5", false, GUIEditor.tab[1]) guiSetProperty(b13, "NormalTextColour", "FFFFFFFF") GUIEditor.button[15] = guiCreateButton(50, 15, 100, 35, "HandGuns", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[15], "NormalTextColour", "FFFFFFFF") GUIEditor.button[16] = guiCreateButton(190, 15, 100, 35, "ShotGuns", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[16], "NormalTextColour", "FFFFFFFF") GUIEditor.button[17] = guiCreateButton(330, 15, 100, 35, "Sub-Machine", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[17], "NormalTextColour", "FFFFFFFF") GUIEditor.button[18] = guiCreateButton(470, 15, 100, 35, "Assault Rifles", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[18], "NormalTextColour", "FFFFFFFF") GUIEditor.button[19] = guiCreateButton(610, 15, 100, 35, "Rifles", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[19], "NormalTextColour", "FFFFFFFF") GUIEditor.button[20] = guiCreateButton(630, 475, 100, 50, "Sair", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[20], "NormalTextColour", "FFFF0000") GUIEditor.tab[2] = guiCreateTab("Equipamentos", GUIEditor.tabpanel[1]) GUIEditor.staticimage[13] = guiCreateStaticImage(50, 50, 100, 100, ":ammunation1/files/colete.png", false, GUIEditor.tab[2]) GUIEditor.staticimage[14] = guiCreateStaticImage(190, 45, 110, 110, ":ammunation1/files/16.png", false, GUIEditor.tab[2]) GUIEditor.button[7] = guiCreateButton(50, 10, 100, 35, "Colete", false, GUIEditor.tab[2]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFFFFFFF") GUIEditor.button[8] = guiCreateButton(190, 10, 100, 35, "Paraquedas", false, GUIEditor.tab[2]) guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFFFFFFF") GUIEditor.button[9] = guiCreateButton(50, 155, 100, 50, "Comprar", false, GUIEditor.tab[2]) guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FFFFFFFF") GUIEditor.button[10] = guiCreateButton(190, 155, 100, 50, "Comprar", false, GUIEditor.tab[2]) guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FFFFFFFF") GUIEditor.button[11] = guiCreateButton(630, 475, 100, 50, "Sair", false, GUIEditor.tab[2]) guiSetProperty(GUIEditor.button[11], "NormalTextColour", "FFFF0000") end ) addEventHandler("onClientRender", root, function() dxDrawRectangle(466, 207, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("", 488, 217, 488, 217, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false) dxDrawRectangle(466, 207, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("", 488, 217, 488, 217, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false) dxDrawRectangle(466, 207, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("", 488, 217, 488, 217, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false) dxDrawRectangle(466, 207, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("", 488, 217, 488, 217, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false) dxDrawRectangle(466, 207, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("", 488, 217, 488, 217, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false) dxDrawRectangle(466, 207, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("", 488, 217, 488, 217, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false) end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b1 ) then triggerServerEvent("pistol",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b2 ) then triggerServerEvent("shotgun",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b3 ) then triggerServerEvent("uzi",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b4 ) then triggerServerEvent("m4",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b5 ) then triggerServerEvent("sniper",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b6 ) then triggerServerEvent("spistol",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b7 ) then triggerServerEvent("combat",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b8 ) then triggerServerEvent("tec",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b9 ) then triggerServerEvent("ak",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b10 ) then triggerServerEvent("country",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == b11 ) then triggerServerEvent("eagle",getLocalPlayer()) end end
-
Yes I want the progress bar fills, while player is within the area, which I wanted to say with the attack, it would be, when the progress bar is full, the area begins to flash which means that the team is dominating this area.
-
Supercroz and et-win could help me if possible?
-
good I wanted to do a bar of progress indicating the time to initiate an attack into a territory for example, I entered in the area that is in the script the top, that appears the bar of progress indicating that the player has to be inside the area to dominate, that is filling as the player stays inside the area, when it ends filling the bar of progress it begins the attack in order that he dominates the territory, the only way what I found it was the guiCreateProgressBar what I found in the wiki any more I did not understand very much as well as work, I managed to create the bar and such, any more I do not manage to add in the part of the clientside and of the serverside and do not manage to do with what the bar fills as the player stays inside the area. obs: Sorry my English, my native language is Portuguese, I have to use a translator, if someone calls me recommend a good.
-
I believe, in every form thanks for the help
-
What I am trying to do is as soon as the player of the team in case grove enters the territory , the progress bar starts to fill and when fills begins the attack of time grove in the territory. is complicated more I have no idea of how to do it.
-
Sorry without wanting to abuse, if you could help me with this progress bar how do I make it recognize the territories
-
I'll test thanks for the help
-
More how do I connect the progress bar with the territory, when I try to dominate the progress does not fill and debugscript apareçe clintside event time and countdown, already tested and only when the progress ta online
-
Et-win where should I add the settimer? You what I'm doing wrong to appear these errors.
-
Using just the script that I showed it appears the following errors when trying to dominate a territory
-
I don't understand very well, where do I add the settimer?
-
We could have got help me as I turn the gang to dominate territory, and as soon as you start attack connect the progress bar showing how much time is left to start the attack, I can't connect them. gang script- GroveStreet = createRadarArea(2440.58, -1629.78, 150, -150, 0, 255, 0 , 225) createBlip(2495.32, -1691.06, 14.76,62) marker = createMarker(2495.20, -1685.94, 12.50,"cylinder", 2, 0, 255, 0, 255) local GroveTeam = createTeam("GroveStreet", 0, 255, 0) function JoinGroveStreet(player) if getPlayerTeam(player) ~= GroveTeam then if isElementWithinMarker(player, marker) then setPlayerTeam(player, GroveTeam) outputChatBox("#FF0000 [GANG] #FFF000 Bem vindo a gang #00FF00 GroveStreet !", player, 0, 0, 0, true) outputChatBox("#FF0000 [GANG] #FFF000 Digite #FF0000 /abandonargrove #FFF000 para sair da #00FF00 GroveStreet !", player, 0, 0, 0, true) end end end addCommandHandler("ingressargrove", JoinGroveStreet) function onSpawn() if getPlayerTeam(source) == GroveTeam then setElementPosition(source, 2512.46, -1671.85, 13.49) end end addEventHandler("onPlayerSpawn", root, onSpawn) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" then outputChatBox("#FF0000 [GANG] #FFF000 Para entra a gang GroveStreet digita #00FF00 /ingressargrove", player, 0, 0, 0, true) end end) function sairDaGangGrove(player) if getPlayerTeam(player) then setPlayerTeam(player, nil) outputChatBox("#FF0000[GANG]#FFF000 Você saiu da gang", player, 255, 255, 255, true) else outputChatBox("#FF0000[GANG]#FFF000 Você não tem gang", player, 255, 255, 255, true) end end addCommandHandler("abandonargrove", sairDaGangGrove) territorio local pArea = createRadarArea(2163.524169,2031.388061 , 150, 60, 255, 255, 255, 225 ) local pCuboid = createColCuboid (2163.524169,2031.388061 , 10, 197.5, 92, 30 ) addEventHandler("onResourceStart", resourceRoot, function() outputDebugString("Gz Banco", 3, 0, 255, 0) end ) addEventHandler( 'onColShapeHit', pCuboid, function( player ) if (getPlayerTeam( player )) then local pTeam = getPlayerTeam( player ) local iR, iG, iB = getTeamColor( pTeam ) local rR, gG, bB = getRadarAreaColor( pArea ) if ( iR == rR ) and ( iG == gG ) and ( iB == bB ) then triggerClientEvent(player, 'friendly', player) else setRadarAreaFlashing( pArea, true ) outputChatBox( "#F08080[GANGZONES] #F8F8FFA gang ".. getTeamName(getPlayerTeam(player)).." esta atacando a gang / na #ff0000 GangZone Banco!",getRootElement(),255,255,255,true); triggerClientEvent(player, 'time', player) triggerClientEvent(player, 'countdown', player) pArea1Timer = setTimer( function() setRadarAreaColor (pArea, iR, iG, iB, 999); givePlayerMoney( player, 4000 ); outputChatBox( "#F08080[GANGZONES] #F8F8FFA gang ".. getTeamName(getPlayerTeam(player)).." dominou o #ff0000 A GangZona Banco #F8F8FFA da gang / ! ",getRootElement(),255,255,255,true); setRadarAreaFlashing( pArea, false ) end, 5000, 1 ) end else triggerClientEvent(player, 'group', player) end end ) Gui-progressbar function clientResourceStart ( ) progressBar = guiCreateProgressBar ( 0.8 , 0.8 , 0.1 , 0.05 , true , nil ) end addEventHandler ( "onClientResourceStart" , getRootElement ( ) , clientResourceStart ) function clientResourceStop ( ) destroyElement ( progressBar ) end addEventHandler ( "onClientResourceStop" , getRootElement ( ) , clientResourceStop ) -- If the progressbar exsist then if ( somebar ) then -- set the progress guiProgressBarSetProgress(somebar, 80) -- get the progress progress = guiProgressBarGetProgress(somebar) -- output to the chatbox outputChatBox ( "Current progress:" .. progress .. "%" ) else --if the progressbar was not found outputChatBox ("progressbar not found!") -- output a message end I did this with the example of the wiki even the progress bar more I can't run.
-
Thanks helped me a lot, more so if I want the event onPlayerWasted have more than one option pack weapons? type using the math.random.
-
like a pack of weapons spawn with ai pack that comes deagle, sawnoff, and m4's when the player is killed he the spawn with another random type pack, now with deagle, combat shotgun, ak47.
-
need to spawn the weapon
-
hi guys, anyone could spawn a script type with: sawn off, deagle, m4. more when the person dies it respawn with another type of pack: deagle, combat shotgun, ak47. already tried some ways most have not had results, use a simple system to respawn. local spawnX, spawnY, spawnZ = 2030.22, -1418.29, 16.99 function joinHandler() spawnPlayer(source, spawnX, spawnY, spawnZ) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("Bem Vindo", source) end addEventHandler( "onPlayerJoin", getRootElement(), joinHandler) addEventHandler( "onPlayerWasted" , getRootElement ( ), function() setTimer( spawnPlayer, 5000, 1, source, 2030.22, -1418.29, 16.99 ) end )