Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 24/02/23 in all areas

  1. function bet(player, cmd, amount) amount = tonumber(amount) if not amount or amount <= 0 then outputChatBox("Invalid bet amount.", player, 255, 0, 0, true) return end local money = getPlayerMoney(player) if money < amount then outputChatBox("You don't have enough money to make that bet.", player, 255, 0, 0, true) return end local win = math.random(0, 1) == 1 if win then givePlayerMoney(player, amount*2) outputChatBox("You won your bet of $" .. amount .. "!", player, 0, 255, 0, true) else takePlayerMoney(player, amount) outputChatBox("You lost your bet of $" .. amount .. ".", player, 255, 0, 0, true) end end addCommandHandler("bet", bet)
    1 point
  2. Texturing a Firefighter - bunker pants:
    1 point
  3. Isso acontece devido a sua condição if not isCursorShowing() then pois ela se torna false depois que o cursor fica visível. Tire essa condição dali e também o showCursor. Coloque o showCursor lá em baixo na função que adiciona/remove o onClientRender. local screenW, screenH = guiGetScreenSize() local states = false function DX_Entregas() dxDrawRectangle(screenW * 0.3794, screenH * 0.2467, screenW * 0.2288, screenH * 0.4833, tocolor(31, 31, 31, 255), false) dxDrawRectangle(screenW * 0.3794, screenH * 0.2356, screenW * 0.2288, screenH * 0.0111, tocolor(116, 0, 165, 255), false) dxDrawRoundedRectangle(screenW * 0.3956, screenH * 0.2711, screenW * 0.1969, screenH * 0.3333, 15, tocolor(82, 82, 82, 224), false) dxDrawRoundedRectangle(screenW * 0.4019, screenH * 0.6444, screenW * 0.0769, screenH * 0.0533, 15, tocolor(82, 82, 82, 224), false) dxDrawRoundedRectangle(screenW * 0.5094, screenH * 0.6444, screenW * 0.0769, screenH * 0.0533, 15, tocolor(82, 82, 82, 224), false) dxDrawText("SIM", screenW * 0.4200, screenH * 0.6489, screenW * 0.4788, screenH * 0.6778, tocolor(25, 232, 4, 255), 3.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("NÃO", screenW * 0.5240, screenH * 0.6489, screenW * 0.5837, screenH * 0.6778, tocolor(237, 0, 0, 255), 3.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Você quer trabalhar entregando drogas?", screenW * 0.4200, screenH * 0.2822, screenW * 0.6019, screenH * 0.3122, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("--Receber uma van no local ao lado", screenW * 0.4044, screenH * 0.3267, screenW * 0.5863, screenH * 0.3567, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("--Entregar a carga em um local secreto", screenW * 0.4044, screenH * 0.3567, screenW * 0.5863, screenH * 0.3867, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("--Receber de 10000 a 13000 de Dinheiro Sujo", screenW * 0.4044, screenH * 0.3867, screenW * 0.5863, screenH * 0.4211, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) end addEvent("Open:Ilegal", true) addEventHandler("Open:Ilegal", root, function() if states then removeEventHandler("onClientRender", root, DX_Entregas) else addEventHandler("onClientRender", root, DX_Entregas) end states = not states -- Alterna states entre true e false a cada vez. showCursor(states) end)
    1 point
  4. It remains possible, make sure to read carefully and also see https://updatesa.multitheftauto.com/sa/trouble/?tr=serial-validation As long you control the PC (host machine) you're fine.. 99% of the impact is on cloud gaming only, because the customer has no control over the machine that runs the VM.
    1 point
×
×
  • Create New...