Jump to content

Dimos7

Members
  • Posts

    1,546
  • Joined

  • Last visited

Everything posted by Dimos7

  1. Try to change the scale your selfie and find a nice one
  2. local sx, sy = guiGetScreenSize() local sw, sh = sx/1366, sy/768 addEventHandler("onClientRender", root, function() dxDrawImage((sx - 561) / 2, (sy - 431) / 2, sw*561, sh*431, "images/back.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage((sx - 517) / 2, (sy - 465) / 2, sw*332, sh*86, "images/button.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage((sx - 522) / 2, (sy - 459) / 2, sw*96, sh*96, "images/pay.png", 0, 0, 0, tocolor(0, 0, 0, 255), false) dxDrawImage((sx - 520) / 2, (sy - 456) / 2, sw*96, sh*96, "images/pay.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage((sx - 906) / 2, (sy - 179) / 2, sw*48, sh*48, "images/deny.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("Контрольно-пропускной\nпункт", (sx - 539 - 1) / 2, (sy - 173 - 1) / 2, sw*827 - 1, sh*268 - 1, tocolor(0, 0, 0, 255), 2.50, "default", "center", "center", false, false, false, false, false) dxDrawText("Контрольно-пропускной\nпункт", (sx - 539 + 1) / 2, (sy - 173 - 1) / 2, sw*827 + 1, sh*268 - 1, tocolor(0, 0, 0, 255), 2.50, "default", "center", "center", false, false, false, false, false) dxDrawText("Контрольно-пропускной\nпункт", (sx - 539 - 1) / 2, (sy - 173 + 1) / 2, sw*827 - 1, sh*268 + 1, tocolor(0, 0, 0, 255), 2.50, "default", "center", "center", false, false, false, false, false) dxDrawText("Контрольно-пропускной\nпункт", (sx - 539 + 1) / 2, (sy - 173 + 1) / 2, sw*827 + 1, sh*268 + 1, tocolor(0, 0, 0, 255), 2.50, "default", "center", "center", false, false, false, false, false) dxDrawText("Контрольно-пропускной\nпункт", (sx - 539) / 2, (sy - 173) / 2, sw*827, sh*268, tocolor(255, 255, 255, 255), 2.50, "default", "center", "center", false, false, false, false, false) dxDrawText("Оплатить проезд", (sx - 614) / 2, (sy - 480) / 2, sw*814, sh*534, tocolor(0, 0, 0, 255), 2.30, "default", "center", "center", false, false, false, false, false) dxDrawText("Оплатить проезд", (sx - 614) / 2, (sy - 477) / 2, sw*814, sh*531, tocolor(255, 255, 255, 255), 2.30, "default", "center", "center", false, false, false, false, false) dxDrawImage((sx - 517) / 2, (sy - 338) / 2, sw*332, sh*86, "images/button.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("$", (sx - 665) / 2, (sy - 352) / 2, sw*691, sh*405, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, false, false) dxDrawText("$", (sx - 663) / 2, (sy - 348) / 2, sw*689, sh*401, tocolor(255, 254, 254, 255), 4.00, "default", "center", "center", false, false, false, false, false) end ) try that i hope fit to all the resolution
  3. What is your screen resolution?
  4. Dimos7

    [Help] Error

    function restoreAll(thePlayer) local r,g,b = getPlayerNametagColor(thePlayer) for index,players in ipairs(getElementsByType("player")) do if ghostmode == true then ghostmode = false setElementVisibleTo(thePlayer,players,true) setPlayerNametagShowing(thePlayer,true) setElementAlpha(thePlayer,255) createBlipAttachedTo(thePlayer,0,2,r,g,b,255) end end end addEvent("rAll",true) addEventHandler("rAll", root,restoreAll) function restoreAllOnStop() triggerEvent("rAll",root) end addEventHandler("onResourceStop",resourceRoot ,restoreAllOnStop)
  5. Dimos7

    Help me

    getVehicleModelFromName
  6. createMarker setTimer getTimerDetails getTimers addEventHandler
  7. You need find a Hot which have mysql
  8. Yes i good idea have a sql database you need have different table for account Vehicles99ui etc
  9. you need set them in interior you go for see them
  10. if you have a database and you have store the plate of the vehicle with the name etc yes
  11. local x1, y1, z1, rx1, ry1, rz1 = 2243.2, -1263.2, 23.5, 0, 0, 270 -- I set the coordinates of the vehicle's spawn addEventHandler ( "onPlayerJoin", getRootElement(),function() local Bike = createVehicle ( 481, 0, 0, 0 ) -- set the type of vehicle setVehicleColor( Bike, 88,142,110 ) -- set the color spawnVehicle( Bike, x1, y1, z1, rx1, ry1, rz1) local spawnVeh = spawnVehicle ( Bike, x1, y1, z1, rx1, ry1, rz1 ) -- spawns the vehicle local xb1, yb1, zb1 = getElementPosition ( Bike ) -- taking the vehicle's coordinates local theMarker = createMarker ( xb1, yb1, zb1, "arrow", 0.4, 255, 255, 0, 170 ) -- create a marker over the vehicle attachElements ( theMarker, Bike, 0, 0, 1.5 ) -- that is attached to it local driver = getVehicleOccupant (source) -- wanted to read if someone is sitting on the bike if driver then -- and if he is sitting destroyElement(theMarker) -- destroy the marker end end)
  12. You mean diasble damage by a command?
  13. Do you have copy the code in wiki because it a usefuel function?
  14. You can check if the download have stop and the make you script wotking
  15. Firth the GUIEditor. login and pass not exist because the GUIEditor is a table
  16. Well need and you client side for help you
  17. You mean costum command?
  18. remove the line 3 mate line 3 make it table
  19. addEventHandler("onPlayerWasted", root, function() car = getPedOccupiedVehicle(source) if isPedInVehicle(source) and isPedDead(source) then destroyElement(car) end end)
×
×
  • Create New...