Jump to content

Dimos7

Members
  • Posts

    1,546
  • Joined

  • Last visited

Everything posted by Dimos7

  1. type need be client not server
  2. what you trying to do exacly?
  3. Dimos7

    sqlite COUNT

    dbPoll(dbQuery(db, "SELECT COUNT(Account ) * FROM AllAccTable WHERE acc=?", toJSON(getAccountName(acc))), - 1)
  4. local sw, sh = guiGetScreenSize() local x, y = sw/1280, sh/1024 dxDrawImage(x * 0.2891, y * 0.2891, x * 0.4227, y * 0.4229, ":electric/circuitBoard.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
  5. at rectangle 3 and 4 argument is weight and height at text 3 and 4 is right and bottom aligns
  6. put the code used not onlky a part aslos us the icon with <> and place your code there
  7. Dimos7

    blips

    check the size of blips on your script and make sure
  8. addEventHandler("onPlayerDamage", root, function (attacker, weapon, bodypart, loss) setElementFrozen(sure, true) isVehicleBlown end) check if attacker is player and weapons are you want to freeze him also check if attacker is vehicle
  9. What do you mean add like upgrade?
  10. addCommandHandler("fixveh", function(player), false, false if isPedInVehicle(player) then local veh = getPedOccupiedVehicle(player) fixVehicle(veh) end end)
  11. You want to not moe when get damage of a expolsion?
  12. addEventHandler("onClientPlayerJoin", root, function() if isTransferBoxActive() ==true then fadeCamera(false) end end)
  13. addEventHandler("onClientPlayerDamage", root, function(attacker, weapon, bodypart) if bodypart ==9 then playSound end end)
  14. Dimos7

    Trunk open

    local trunkDoor = -- put true or false if you want first time open put false function toggleTrunk(player) if isPedInVehicle(player) then - check player is in a car. local car = getPedOccupiedVehicle(player) -- takes the car the player is inside. if turnkDoor then -- put here trunk door and check if it false for open it or close it setVehicleDoorOpenRatio(car) else setVehicleDoorOpenRatio(car) end end end addCommandHandler("trunk", toggleTrunk)
  15. Dimos7

    Trunk open

    that is the functions you need getPedOccupiedVehicle setVehicleDoorState addCommandHandler
  16. dbExec(connection, "INSERT INTO table_name (the values you want change) VALUES(?,?,? )", "1", "Bob", "What\'s the time" )
  17. addEventHandler("onClientRender", root, function() local cx, cy, cz = getCameraMatrix() local px, py, pz = getElementPosition(localPlayer) if getElementData(localPlayer, "afk_state") == afk then dist = math.sqrt(px-cx)^2 + (py-cy)^2 + (pz-cz)^2) if dist < 30 then if isLineOfSightClear(px, py, pz, cx, cy, cz, true, false, false, true, false, false, true) local bx, by, bz = getPedBonePosition(localPlayer, 6) local x, y = getScreenFromWorldPosition(bx, by, bz+0.3) if x then dxDrawText("AFK", x, y, x, y tocolor(255, 255, 255, 255), 0.085+(15-dist)*0.02, "pricedown", "center", "center") end end end end end)
  18. addEventHandler("onClientRender", root, function() local cx, cy, cz = getCameraMatrix() local px, py, pz = getElementPosition(localPlayer) if getElementData(localPlayer, "afk_state") == afk then dist = math.squrt(px-cx)^2 + (py-cy)^2 + (pz-cz)^2) if dist < 30 then if isLineOfSightClear(px, py, pz, cx, cy, cz, true, false, false, true, false, false, true) local bx, by, bz = getPedBonePosition(localPlayer, 6) local x, y = getScreenFromWorldPosition(bx, by, bz+0.3) if x then dxDrawText("AFK", x, y, x, y tocolor(255, 255, 255, 255), 0.085+(15-dist)*0.02, "pricedown", "center", "center") end end end end end)
  19. Try put the aplha on dxtext 255 inside the tocolor
×
×
  • Create New...