Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 26/03/19 in Posts

  1. مفيدة فعلاً بس عندي تعليقين، ليه استخدمت string.rep وانت بتضيف صفر واحد؟ كمان اذا بتستخدمه بس للوقت، اذا استخدمته على صيغة كاملة مثل "5:3" بيحولها ل "05:3" فقط فمن الافضل تكون function addZero (str) local newStr = "" local t = {} for _, digit in ipairs(string.gmatch(str, ":")) do local tmpStr = "" if string.len(digit) == 1 then tempStr = tostring(0..digit) else tempStr = tostring(digit) end table.insert(t, tempStr) end newStr = table.concat(t, ":") return newStr end
    2 points
  2. رستار للجهاز وأغلاق أي نفادة مفتوحة قبل الدخول الى اللعبة
    1 point
  3. Remova as linhas 2, 3, 4 e 6.
    1 point
  4. Significa que seu triggerClientEvent (source, "botao1", root) está tentando ativar um evento que não existe no lado client.
    1 point
  5. Acho que entendi. Isso deve te servir function Dx () dxDrawButton(x*379, y*300, x*608, y*53, "SIM", tocolor(255, 0, 0, 220), tocolor(255, 255, 255, 255), "default-bold", 1, false, false) end --==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==- function dxDrawButton(posX, posY, width, height, text, cursorColor, colorText, font, scale, colorCoded, postGUI) dxDrawRectangle(posX, posY, width, height, isCursorOnElement(posX, posY, width, height) and cursorColor or tocolor(0, 0, 0, 150), postGUI) dxDrawText(text, posX + posX, posY + posY -3, width, height, isCursorOnElement(posX, posY, width, height) and tocolor(255, 255, 255, 255) or colorText, scale, Font_4, "center", "center", false, false, postGUI, colorCoded, false) end --==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-
    1 point
  6. Isso é automático do próprio GTA. Crie uma função com onVehicleEnter e desligue as luzes e motor.
    1 point
  7. engineRemoveShaderFromWorldTexture
    1 point
  8. @Poderoso favor não reviver tópicos antigos.
    1 point
  9. 1 point
  10. Temporary download link: http://skycore.hu/glasscolor.rar Something like that, but this is not the right solution because it also tones other parts of the car.
    1 point
  11. dxCreateShader dxCreateTexture dxSetShaderValue engineApplyShaderToWorldTexture
    1 point
  12. onPlayerDamage Source The source of this event is the player who was damaged. addEventHandler( "onPlayerDamage", root, function (attacker) if (attacker and attacker:getType("player") and attacker:getWeapon() == 23) then if (attacker:getData("Venda:Police.Job")) then if (source:getWantedLevel() == 0) then return addNotification(attacker, "Essa pessoa não está com nível de procurado!", "error"); elseif (not Boxs["Markers"]["Create"]["Vehicle"][attacker]) then return addNotification(attacker, "Nenhuma viatura encontrada para levar o sujeito!", "error"); end if (attacker:getHealth() >= 31) then setElementVisibleTo(Boxs["Markers"]["Create"]["Jail"], attacker, true); attacker:setAnimation("ped","CAR_dead_LHS"); attacker:attach(Boxs["Markers"]["Create"]["Vehicle"][attacker], 0.2, -1.5, 0, 0, 0, 90); addNotification(source, "Tu acabas-te de ser algemado e preso, espera ser encaminhado para a cadeia.", "info"); addNotification(attacker, "Tu prendes-te uma pessoa! Leva-a até ao departamento (Sirenes Azuis)", "info"); end end end end )
    1 point
  13. According this topic: http://www.computercraft.info/forums2/index.php?/topic/11043-invalid-key-to-next/ It says that the table has been changed while the process has been yield. Not sure is that is true or not. If we would reproduce that: We have for example this table: local thisTable = {[element] = ped, [element] = ped, [element] = ped, [element] = ped, [element] = ped,[element] = ped } We start looping: local thisTable = { [element] = ped, [element] = ped, [element] = ped, -- yield [element] = ped, [element] = ped, [element] = ped } Now a different part of the code removes: local thisTable = { [element] = ped, [element] = ped, [element] = ped, -- yield [element] = ped, -- < deleted [element] = ped, [element] = ped } And we resume. That is when it is suppose to be happening according to this information. Solution without changing the table structure? pcall might be to catch the error and if there is an error, recreate the coroutine. local status, err = pcall(coroutine.resume, clearing_nonexisting_peds) if not status then clearing_nonexisting_peds = coroutine.create(forgetNonExistingPeds) end
    1 point
  14. خليني اجرب ? لو تبي front-end web developer My Portfolio: https://ahmedessam.info/
    1 point
  15. To testando aqui e realmente tem um bug. Ele não consegue anexar elementos no marker que está anexado em algo. Tem que anexar direto no caminhão. A função retorna true mas não anexa '-'
    0 points
×
×
  • Create New...