Jump to content

Truceed

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by Truceed

  1. Alguem Sabe Como Posso Centralizar Essa Scoreboard No Meio da Tela local screenW, screenH = guiGetScreenSize() local resW, resH = 1920, 1080 local x, y = (screenW/resW), (screenH/resH) function DiasSCR() -----//VÁRIAVEIS LOCAIS\\----- local vida = getElementHealth(localPlayer) local colete = getPedArmor(localPlayer) local money = convertNumber(getPlayerMoney(getLocalPlayer())) local sujo = convertNumber(getElementData(localPlayer, "Dinheiro_Sujo") or "Não possuí!") local bpoints = convertNumber(getElementData(localPlayer, "Biticoin_MTA") or "Não possuí!") local bank = getElementData ( localPlayer, "Bank_Money") or 0 local job = getElementData (localPlayer,"Emprego") or "Desempregado" local fome = getElementData ( localPlayer, "Fome" ) or 60 local sede = getElementData ( localPlayer, "Sede" ) or 60 -----//INTERFACE\\----- dxDrawImage(x*20, y*216, x*519, y*599, "files/img/fundo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) -- IMG FUNDO dxDrawImage(x*219, y*222, x*121, y*121, "files/img/logo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) -- IMG FUNDO dxDrawImage(x*185, y*372, x*28, y*28, "files/img/vida.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) -- IMG VIDA dxDrawImage(x*185, y*432, x*28, y*28, "files/img/colete.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) -- IMG COLETE dxDrawImage(x*185, y*492, x*28, y*28, "files/img/fome.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) -- IMG FOME dxDrawImage(x*185, y*550, x*32, y*32, "files/img/sede.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) -- IMG SEDE dxDrawImage(x*35, y*626, x*30, y*30, "files/img/money.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) -- IMG MONEY dxDrawImage(x*35, y*689, x*30, y*30, "files/img/bank.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) -- IMG BANK dxDrawImage(x*291, y*626, x*30, y*30, "files/img/sujo.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) -- IMG SUJO dxDrawImage(x*291, y*689, x*30, y*30, "files/img/bpoints.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) -- IMG BPOINTS dxDrawImage(x*164, y*765, x*30, y*30, "files/img/maleta.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) -- IMG EMPREGO dxDrawRoundedRectangle(x*180, y*361, x*200/100*vida, y*50, tocolor(205, 65, 65, 255), 5) -- RECTANGLE VIDA dxDrawRoundedRectangle(x*180, y*421, x*200/100*colete, y*50, tocolor(105, 115, 125, 255), 5) -- RECTANGLE COLETE dxDrawRoundedRectangle(x*180, y*481, x*200/100*fome, y*50, tocolor(205, 140, 65, 255), 5) -- RECTANGLE FOME dxDrawRoundedRectangle(x*180, y*541, x*200/100*sede, y*50, tocolor(65, 120, 205, 255), 5) -- RECTANGLE SEDE dxDrawText("R$: "..money, x*324, y*616, x*528, y*664, tocolor(255, 255, 255, 255), y*1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("R$: "..bank, x*324, y*679, x*528, y*727, tocolor(255, 255, 255, 255), y*1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("R$: "..sujo, x*71, y*679, x*275, y*727, tocolor(255, 255, 255, 255), y*1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("R$: "..bpoints, x*71, y*616, x*275, y*664, tocolor(255, 255, 255, 255), y*1.50, "default-bold", "center", "center", false, false, true, false, false) dxDrawText(job, x*197, y*755, x*401, y*803, tocolor(255, 255, 255, 255), y*1.50, "default-bold", "center", "center", false, false, true, false, false) end -----//OPEN DX\\----- local isDXVisible = false bindKey ("tab", "both", function() if isDXVisible then removeEventHandler( "onClientRender", root, DiasSCR ) else addEventHandler( "onClientRender", root, DiasSCR ) end isDXVisible = not isDXVisible end) -----//CONVERT NUMBER\\----- function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1.%2') if ( k==0 ) then break end end return formatted end -----//ARREDONDAR BORDAS\\----- function dxDrawRoundedRectangle(x, y, rx, ry, color, radius) rx = rx - radius * 2 ry = ry - radius * 2 x = x + radius y = y + radius if (rx >= 0) and (ry >= 0) then dxDrawRectangle(x, y, rx, ry, color) dxDrawRectangle(x, y - radius, rx, radius, color) dxDrawRectangle(x, y + ry, rx, radius, color) dxDrawRectangle(x - radius, y, radius, ry, color) dxDrawRectangle(x + rx, y, radius, ry, color) dxDrawCircle(x, y, radius, 180, 270, color, color, 7) dxDrawCircle(x + rx, y, radius, 270, 360, color, color, 7) dxDrawCircle(x + rx, y + ry, radius, 0, 90, color, color, 7) dxDrawCircle(x, y + ry, radius, 90, 180, color, color, 7) end end
  2. O Som Fala Que ta Ligado Mas Não Sai Som Algum g_VehicleList = {} local radioStreams = 0 local defaultRadio = "http://icecast.funx.nl:8000/funx-dance.m3u" local defaultRadio = "http://64.56.64.82:14596" addEventHandler("onResourceStart", resourceRoot, function() for i,veh in ipairs(getElementsByType("vehicle")) do g_VehicleList[veh] = { } g_VehicleList[veh].radio = false g_VehicleList[veh].radioStation = defaultRadio g_VehicleList[veh].volume = 1.0 end end ) addEventHandler("onPlayerJoin", root, function() for i,veh in ipairs(getElementsByType("vehicle")) do if g_VehicleList[veh] ~= nil then if g_VehicleList[veh].radio == true then triggerClientEvent(source, "onServerToggleRadio", root, true, g_VehicleList[veh].radioStation, veh, g_VehicleList[veh].volume) end end end end ) addEventHandler("onVehicleExplode", root, function() if g_VehicleList[source] ~= nil then if g_VehicleList[source].radio == true then triggerClientEvent("onServerToggleRadio", root, false, nil, source) g_VehicleList[source].radio = false destroyElement(g_VehicleList[source].radioMarker) killTimer(g_VehicleList[source].idleTimer) if radioStreams ~= 0 then radioStreams = radioStreams - 1 end end end end ) addEventHandler("onElementDestroy", root, function() if g_VehicleList[source] ~= nil then if g_VehicleList[source].radio == true then triggerClientEvent("onServerToggleRadio", root, false, nil, source) g_VehicleList[source].radio = false destroyElement(g_VehicleList[source].radioMarker) killTimer(g_VehicleList[source].idleTimer) if radioStreams ~= 0 then radioStreams = radioStreams - 1 end end end end ) addEvent("onPlayerToggleRadio", true) addEventHandler("onPlayerToggleRadio", root, function() if source and getElementType(source) == "player" then toggleRadio(source) end end ) function toggleRadio(player) local veh = getPedOccupiedVehicle(player) if veh then local occupants = getVehicleOccupants(veh) local seats = getVehicleMaxPassengers(veh) local playerSeat = getPedOccupiedVehicleSeat(player) if playerSeat ~= 0 and playerSeat ~= 1 then outputChatBox("You can't switch the radio.", player, 255, 255, 255) return end if g_VehicleList[veh] == nil then g_VehicleList[veh] = { } g_VehicleList[veh].radio = false g_VehicleList[veh].radioStation = defaultRadio g_VehicleList[veh].volume = 1.0 end if g_VehicleList[veh].radio == false then if not get("toggleAntifloodTick") or not get("streamLimit") or not get("radioEnabledIdleTime") then return end local settingToggleAntifloodTick = get("toggleAntifloodTick") local settingStreamLimit = get("streamLimit") local idleTime = get("radioEnabledIdleTime") if g_VehicleList[veh].lastTick and (getTickCount() - g_VehicleList[veh].lastTick) <= settingToggleAntifloodTick then return end if radioStreams >= settingStreamLimit then outputChatBox("The limit of streams has reached (" .. settingStreamLimit .. ")", player, 255, 255, 255) return end local x, y, z = getElementPosition(veh) g_VehicleList[veh].radio = true g_VehicleList[veh].lastTick = getTickCount() g_VehicleList[veh].turnedOnBy = getPlayerName(player) g_VehicleList[veh].radioMarker = createMarker(x, y, z, "corona", 0.05, 255, 0, 0) attachElements(g_VehicleList[veh].radioMarker, veh) g_VehicleList[veh].idleTimer = setTimer(radioIdleTimer, idleTime, 0, veh) radioStreams = radioStreams + 1 outputServerLog(getPlayerName(player) .. " has turned the radio on in his vehicle (streams: " .. radioStreams .. ")") for seat = 0, seats do local occupant = occupants[seat] if occupant and getElementType(occupant) == "player" then triggerClientEvent("onServerToggleRadio", root, true, g_VehicleList[veh].radioStation, veh, g_VehicleList[veh].volume) local r, g, b = getPlayerNametagColor(player) colorHex = string.format("%02X%02X%02X", r, g, b) outputChatBox("#" .. colorHex .. "" .. getPlayerName(player) .. " #696969Rádio: [#00ff00ON#696969]", occupant, 0, 0, 0, true) end end else g_VehicleList[veh].radio = false destroyElement(g_VehicleList[veh].radioMarker) killTimer(g_VehicleList[veh].idleTimer) radioStreams = radioStreams - 1 outputServerLog(getPlayerName(player) .. " has turned the radio off in his vehicle (streams: " .. radioStreams .. ")") for seat = 0, seats do local occupant = occupants[seat] if occupant and getElementType(occupant) == "player" then triggerClientEvent("onServerToggleRadio", root, false, nil, veh, g_VehicleList[veh].volume) local r, g, b = getPlayerNametagColor(player) colorHex = string.format("%02X%02X%02X", r, g, b) outputChatBox("#" .. colorHex .. "" .. getPlayerName(player) .. " #696969Rádio: [#ff0000OFF#696969]", occupant, 0, 0, 0, true) end end end end end function radioIdleTimer(veh) if not get("radioIdlePlayerDistanceCheck") then return end local settingDist = get("radioIdlePlayerDistanceCheck") if veh then if g_VehicleList[veh] ~= nil then if g_VehicleList[veh].radio == true then local playerInRange = false local vx, vy, vz = getElementPosition(veh) for i,player in ipairs(getElementsByType("player")) do local px, py, pz = getElementPosition(player) local distance = getDistanceBetweenPoints3D(vx, vy, vz, px, py, pz) if distance ~= false and distance < settingDist then playerInRange = true end end if playerInRange == false then triggerClientEvent("onServerToggleRadio", root, false, nil, veh) g_VehicleList[veh].radio = false destroyElement(g_VehicleList[veh].radioMarker) killTimer(g_VehicleList[veh].idleTimer) if radioStreams ~= 0 then radioStreams = radioStreams - 1 end outputServerLog("An " .. getVehicleName(veh) .. "'s radio has been idled (streams: " .. radioStreams .. ")") end end end end end addEvent("onPlayerRadioVolumeChange", true) addEventHandler("onPlayerRadioVolumeChange", root, function(currentVol, volumeUp) local veh = getPedOccupiedVehicle(source) if veh then local playerSeat = getPedOccupiedVehicleSeat(source) if playerSeat == 0 or playerSeat == 1 then if volumeUp == true then g_VehicleList[veh].volume = currentVol + 0.05 if g_VehicleList[veh].volume >= 1.00 then g_VehicleList[veh].volume = 1.00 end else g_VehicleList[veh].volume = currentVol - 0.05 if g_VehicleList[veh].volume <= 0.00 then g_VehicleList[veh].volume = 0.00 end end triggerClientEvent("onServerVolumeChangeAccept", root, veh, g_VehicleList[veh].volume) end end end ) function cmdChangeRadioURL(source, commandName, url) if not url then outputChatBox("Usage: /setradio newurl", source, 255, 255, 255) return end local veh = getPedOccupiedVehicle(source) if veh then local occupants = getVehicleOccupants(veh) local seats = getVehicleMaxPassengers(veh) if g_VehicleList[veh] == nil then local x, y, z = getElementPosition(veh) g_VehicleList[veh] = { } g_VehicleList[veh].radio = true g_VehicleList[veh].lastTick = getTickCount() g_VehicleList[veh].radioStation = defaultRadio g_VehicleList[veh].volume = 1.0 g_VehicleList[veh].radioMarker = createMarker(x, y, z, "corona", 0.1, 255, 0, 0) attachElements(g_VehicleList[veh].radioMarker, veh) g_VehicleList[veh].idleTimer = setTimer(radioIdleTimer, idleTime, 0, veh) end local playerSeat = getPedOccupiedVehicleSeat(source) if playerSeat ~= 0 and playerSeat ~= 1 then outputChatBox("You can't switch the radio station URL.", source, 255, 255, 255) return end for seat = 0, seats do local occupant = occupants[seat] if occupant and getElementType(occupant) == "player" then g_VehicleList[veh].radioStation = url g_VehicleList[veh].changedBy = getPlayerName(source) if g_VehicleList[veh].radio == true then triggerClientEvent("onServerRadioURLChange", root, g_VehicleList[veh].radioStation, veh, g_VehicleList[veh].volume) end local r, g, b = getPlayerNametagColor(source) colorHex = string.format("%02X%02X%02X", r, g, b) outputChatBox("#" .. colorHex .. "" .. getPlayerName(source) .. " #FFFFFFhas changed the radio station.", occupant, 0, 0, 0, true) outputConsole(getPlayerName(source) .. " has changed the radio station on his vehicle to: " .. url, occupant) end end outputServerLog(getPlayerName(source) .. " has changed the radio station on his vehicle to: " .. url) end end function cmdDumpVehRadioInfo(source, commandName) for i,veh in ipairs(getElementsByType("vehicle")) do if g_VehicleList[veh] ~= nil then if g_VehicleList[veh].radio == true then local strOut if g_VehicleList[veh].changedBy ~= nil then strOut = "Vehicle: " .. getVehicleName(veh) .. ", URL = " .. g_VehicleList[veh].radioStation .. ", Turned on by: " .. g_VehicleList[veh].turnedOnBy .. ", URL changed by: " .. g_VehicleList[veh].changedBy else strOut = "Vehicle: " .. getVehicleName(veh) .. ", URL = " .. g_VehicleList[veh].radioStation .. ", Turned on by: " .. g_VehicleList[veh].turnedOnBy end if getElementType(source) == "console" then outputServerLog(strOut) elseif getElementType(source) == "player" then outputChatBox(strOut, source, 255, 255, 255) end end end end end addCommandHandler("setradio", cmdChangeRadioURL) addCommandHandler("dumpradio", cmdDumpVehRadioInfo)
  3. Só Fica uma Cor, alguem Sabe pq? local cargo = getElementData(player, "cargo") if(cargo) then w = dxGetTextWidth(cargo, 1.2, font ) dxDrawText(cargo, x - 1 - w / 2,y - -20 - h - 12-18, w, h, tocolor(0,255,127), 1.2, font) end end end function cromusCargos(player) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Console")) then setElementData(player, "cargo", "DONO GERAL") setElementData(player, "cargo->cor", {0,255,127}) elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Admin")) then setElementData(player, "cargo", "ADM") elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Premium")) then setElementData(player, "cargo", "【VIP Premium】") setElementData(player, "cargo->cor", (255,0,255)) elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("SuperModerator")) then setElementData(player, "cargo", "S.MOD") setElementData(player, "cargo->cor", {255,140,140}) elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Moderator")) then setElementData(player, "cargo", "MOD") setElementData(player, "cargo->cor", {255,140,140}) elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("BPG")) then setElementData(player, "cargo", "BPG") setElementData(player, "cargo->cor", {255,140,140}) elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Everyone")) then setElementData(player, "cargo", " ") setElementData(player, "cargo->cor", {255,140,140}) end end function onResourceStart() for _, player in pairs(getElementsByType("player")) do cromusCargos(player) end end addEventHandler("onResourceStart",resourceRoot,onResourceStart) function onPlayerLogin() cromusCargos(source) end addEventHandler("onPlayerLogin",root,onPlayerLogin)
  4. Opá Amigo, Desculpa Desculpa desculpa incomodar ai, Mas eu Coloquei Aki e Não Foi, Tipo nem Abre, Eu Coloquei Assim olha, Ta certo?
  5. Quem So Pode entrar Nesse MarkerEntrada = criarMarker Quem ta na ACL "Premium" Alguem me ajuda prfv --[[ =========================================================== # Minha página: https://www.facebook.com/TioSteinScripter/# # ╔════╗╔══╗╔═══╗ ╔═══╗╔════╗╔═══╗╔══╗╔═╗─╔╗ # # ║╔╗╔╗║╚╣─╝║╔═╗║ ║╔═╗║║╔╗╔╗║║╔══╝╚╣─╝║║╚╗║║ # # ╚╝║║╚╝─║║─║║─║║ ║╚══╗╚╝║║╚╝║╚══╗─║║─║╔╗╚╝║ # # ──║║───║║─║║─║║ ╚══╗║──║║──║╔══╝─║║─║║╚╗║║ # # ──║║──╔╣─╗║╚═╝║ ║╚═╝║──║║──║╚══╗╔╣─╗║║─║║║ # # ──╚╝──╚══╝╚═══╝ ╚═══╝──╚╝──╚═══╝╚══╝╚╝─╚═╝ # =========================================================== --]] Markers = { ID = {}, {2558.76709, -1295.85486, 1044.12500 -1, 2}, {2551.13525, -1300.09497, 1044.12500 -1, 2}, {2542.92041, -1300.09375, 1044.12500 -1, 2}, {2543.17505, -1287.22681, 1044.12500 -1, 2}, {2551.29663, -1287.22803, 1044.12500 -1, 2}, {2559.26025, -1287.21887, 1044.12500 -1, 2}, {2555.82959, -1291.00562, 1044.12500 -1, 2}, } for i=1, #Markers do local x, y, z, int = Markers[i][1], Markers[i][2], Markers[i][3], Markers[i][4] Markers[i] = createMarker( x, y, z, "cylinder", 1.5, 16, 111, 231, 50) Markers.ID[Markers[i]] = i setElementInterior(Markers[i], int) end function hit (element) if Markers.ID[source] then if getElementType(element) == "player" then triggerClientEvent(element, "TS:AbrirFArmas", element) end end end addEventHandler("onMarkerHit", resourceRoot, hit) local BlipTrafico1 = createBlip( 2333.27979, -1883.56091, 15.00000, BlipTrafico) setBlipVisibleDistance(BlipTrafico1, 300) local MarkerEntrada = createMarker ( 2333.27979, -1883.56091, 15.00000 -1, "cylinder", 1.5, 16, 111, 231, 50) local MarkerSaida = createMarker ( 2570.46021, -1301.82617, 1044.12500 -1, "cylinder", 1.5, 16, 111, 231, 50) setElementInterior(MarkerSaida, 2) -------------------------------- Funções Iniciais function Entrar (source) setElementPosition (source, 2565.54688, -1302.34216, 1044.12500) setElementInterior(source, 2) setElementDimension(source, 0) end addEventHandler("onMarkerHit", MarkerEntrada, Entrar) function Sair (source) setElementPosition(source, 2327.48071, -1882.54944, 13.61931) setElementInterior(source, 0) setElementDimension(source, 0) end addEventHandler("onMarkerHit", MarkerSaida, Sair) function FabricarArma (source, Arma, Valor, Tempo) local Preco = tonumber(Valor) local Time = tonumber(Tempo) local Peca = getElementData(source, "TS:Peças "..Arma.."") or 0 local Quantidade = getElementData(source, "TS:Quanti"..Arma.."") or 0 local ID = getWeaponIDFromName ( Arma ) if getPlayerMoney(source) >= Preco then setElementData(source, "TS:Peças "..Arma.."", Peca - 1) setElementFrozen(source, true) setElementData(source, "TS:TempoArma", Time) setElementData(source, "TS:Parte", "Fabricando Peças") takePlayerMoney(source, Preco) triggerClientEvent(source, "TS:FecharArmas2", source) triggerClientEvent(source, "TS:AbrirArmas2", source) triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffVocê começou a fabricar uma "..Arma.." !", "info") setPedAnimation( source, "WEAPONS", "SHP_Ar_Lift", true) setElementData(source, "TS:PermissaoPegarArma", "Sim") setPlayerWantedLevel(source, 6) setTimer(function() setElementData(source, "TS:Parte", "Lubrificando Peças") setPedAnimation( source, "SHOTGUN", "shotgun_fire", true) end, Time/3*60000, 1) setTimer(function() setElementData(source, "TS:Parte", "Montando Arma") setPedAnimation( source, "WEAPONS","SHP_2H_LIFT", true) end, Time/2*60000, 1) setTimer(function() local Perm = getElementData(source, "TS:PermissaoPegarArma") or "Não" if Perm == "Sim" then triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffVocê fabricou uma "..Arma.." com sucesso!", "info") setElementFrozen(source, false) setElementData(source, "TS:Parte", nil) setElementData(source, "TS:TempoArma", nil) setPedAnimation( source, nil) giveWeapon(source, ID, 500) triggerClientEvent(source, "TS:FecharArmas4", source) end end, Time*60000, 1) else triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffVocê não tem dinheiro suficiente!", "info") end end addEvent ("TS:FabricarArma", true) addEventHandler ("TS:FabricarArma", root, FabricarArma)
  6. Alguem sabe Onde ta o erro, Script de NometagID tag = {}; strPlayers = {}; --return tag.NAMETAG_OFFSET = 1.1; tag.NAMETAG_WIDTH = 100; tag.NAMETAG_HEIGHT = 20; tag.NAMETAG_MAX_DISTANCE = 25; tag.NAMETAG_SCALE = 3.5; tag.dxDraw = dxDrawText; tag.dxCreateFont = dxCreateFont; tag.nametagFont = tag.dxCreateFont("font.ttf", 17); tag.size = 0.6; tag.color = 240; tag.size2 = "center" tag.nametagsVisible = true local function removeHexFromString(string) return string.gsub(string, "#%x%x%x%x%x%x","") end addEventHandler("onClientRender", root, function () if not tag.nametagsVisible then return end --local r, g, b = exports.dpUI:getThemeColor() local cx, cy, cz = getCameraMatrix() for player, info in pairs(strPlayers) do local px, py, pz = getElementPosition(player) local x, y = getScreenFromWorldPosition(px, py, pz + tag.NAMETAG_OFFSET) if x then tag.distance = getDistanceBetweenPoints3D(cx, cy, cz, px, py, pz) if tag.distance < tag.NAMETAG_MAX_DISTANCE then local name = info.name or "false" local id = info.ids or "false" --local famali = info.familia or "false" local obsh = name.." ("..id..")" local scale = 1 / tag.distance * tag.NAMETAG_SCALE local width = tag.NAMETAG_WIDTH * scale local height = tag.NAMETAG_HEIGHT * scale local nx, ny = x - width / 2, y - height / 2 --dxDrawNametagText(name, nx, ny, nx + width, ny + height, tocolor(255, 255, 255, 255), scale) tag.dxDraw(obsh, nx, ny, nx + width, ny + height, tocolor(tag.color, tag.color, tag.color, tag.color), tag.size,tag.size, tag.nametagFont, tag.size2, tag.size2) end end end end) function tag.showPlayer(player) if not isElement(player) then return false end setPlayerNametagShowing(player, false) if player == localPlayer then return end strPlayers[player] = {name = player.name,ids = getElementData(player,"id") or "false"} return true end addEventHandler("onClientElementStreamIn", root, function () if source.type == "player" then tag.showPlayer(source) end end) addEventHandler("onClientElementStreamOut", root, function () if source.type == "player" then strPlayers[source] = nil end end) addEventHandler("onClientPlayerQuit", root, function () strPlayers[source] = nil end) addEventHandler("onClientPlayerJoin", root, function () if isElementStreamedIn(source) then tag.showPlayer(source) end setPlayerNametagShowing(source, false) end) addEventHandler("onClientPlayerSpawn", root, function () if isElementStreamedIn(source) then tag.showPlayer(source) end end) addEventHandler("onClientElementDataChange", root, function(dataName, oldValue) if dataName == "Passport" then tag.showPlayer(source) end end) addEventHandler("onClientResourceStart", resourceRoot, function () for i, player in ipairs(getElementsByType("player")) do if isElementStreamedIn(player) then tag.showPlayer(player) end setPlayerNametagShowing(player, false) end end) function setVisible(visible) tag.nametagsVisible = not not visible end
  7. Um De ID Permanente, Mas Acho Que não é ele, Eu Ligo o Script e Não Muda Nada Tlgd?
  8. Cara, Acho que tem algo de errado, Não ta funfando
  9. Eu Queria um Script Que Fica o Nick e o ID do Jogador Na Cabeça, Sem a Vida e Sem o Colete Apenas o Nick e O ID, Se tiver como Colocar Antes do Nick ou em Cima o Grupo do Jogador eu iria ficar muito Grato
  10. Boa noite, Eu tava Alterando alguns Mods Do Meu servidor Agora o Boneco Trava Quando este Mirando, Não Sai Do local Ate eu parar de Mirar, Sabe como Resolve?
  11. Olá. Meu Servidor Tem um sistema De Patio, Quando o Jogador Perder Ou Deixar em Algum Local Poder Usar o painel Para teleportar o Carro Para o Patio, Mas eu Queria Que Quando um Jogador Deslogar Do Servidor o Carro Dele Sumir e o jogador ser Obrigado a Teleportar Para o Patio Para Retirar o Veiculo!! OBS: Quando o Jogador Desloga o Carro ainda Fica no mesmo Local HELP
  12. Sabe Como Coloca o grupo Do player no Chat ?
  13. Gostaria de saber como faço para adicionar grupos ACL nestes chat Help-me function MensagemTwitter(source, cmd, ...) local MessagemT = table.concat ( { ... }, " " ) local name = getPlayerName(source); for _,v in ipairs(getElementsByType("player")) do outputChatBox("#00BFFF[ Twitter ] #FFFFFF "..name.." #FFFFFF: #00BFFF"..MessagemT,v, 255, 255, 255, true) --efeito no chat end end addCommandHandler("Twitter", MensagemTwitter) function MensagemAnon(source, cmd, ...) local MessagemANS = table.concat ( { ... }, " " ); for _,v in ipairs(getElementsByType("player")) do outputChatBox("#ffffff[ #696969 Anônimo #ffffff] #696969"..MessagemANS,v, 255, 255, 255, true) --efeito no chat end end addCommandHandler("Ans", MensagemAnon) function MensagemRP(source, cmd, ...) local MessagemFRP = table.concat ( { ... }, " " ); local name = getPlayerName(source); local getID = getElementData(source, "ID") or "n.a" for _,v in ipairs(getElementsByType("player")) do outputChatBox("#A9A9A9[ @Global ]#ffffff "..name.." #A9A9A9(ID:"..getID..") #A9A9A9 ❱ #ffffff"..MessagemFRP,v, 255, 255, 255, true) --efeito no chat end end addCommandHandler("forarp", MensagemRP) addEventHandler("onPlayerJoin", getRootElement(), function() bindKey(source, "k", "down", "chatbox", "Ans")--bind end ) addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() for index,player in pairs(getElementsByType("player")) do bindKey(player,"k", "down", "chatbox", "Ans") --bind end end ) addEventHandler("onPlayerJoin", getRootElement(), function() bindKey(source, "u", "down", "chatbox", "Twitter") --bind end ) addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() for index,player in pairs(getElementsByType("player")) do bindKey(player,"u", "down", "chatbox", "Twitter") --bind end end ) addEventHandler("onPlayerJoin", getRootElement(), function() bindKey(source, "i", "down", "chatbox", "forarp") --bind end ) addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() for index,player in pairs(getElementsByType("player")) do bindKey(player,"i", "down", "chatbox", "forarp") --bind end end )
  14. Boa Noite, Tem como Me da uma ajuda tbm?
×
×
  • Create New...