Jump to content

Dimos7

Members
  • Posts

    1,546
  • Joined

  • Last visited

Everything posted by Dimos7

  1. setPlayerHudComponentVisible("all", false)
  2. I think the first no as for second idk
  3. then use toJSON function and store them as table
  4. isElementWithinMarker Use this
  5. You can't repalce cj clothes otherwise sorry as far i know except if you want change cj model as it is
  6. For replace cj model cloths use shader see the examble on wiki
  7. local sw, sh = guiGetScreenSize() local sx, sy = sw/1920, sh/1080 -- change those number with your resolution local PedA = createPed(285, 1571.49634, -1664.07715, 28.39561, 90) function healthbar() local plr = localPlayer local x, y, z = getElementPosition(PedA) target = getPedTarget(plr) if (not target) then return false end if (not getElementType(target) == "ped" ) then return false end if (not isElementOnScreen(PedA)) then return false end local X, Y = getScreenFromWorldPosition(x, y, z) if (X) then local healthA = dxDrawRectangle(X - 50, Y - 50, sx*270, sy*27, tocolor(241, 236, 253, 114), false) local health = getElementHealth(PedA) local lineLength = 256 * (health / 100) local healthB = dxDrawRectangle(X - 44, Y - 44, lineLength, sy*17, tocolor(9, 172, 213, 254), false) end end addEventHandler("onClientRender", root, healthbar)
  8. Dimos7

    DxTimer

    You want that timer be on server time on killer kill that bot right?
  9. Dimos7

    DxTimer

    You want add timer in that code when bot die?
  10. Dimos7

    DxTimer

    You can create the server side and saves it as element data and then pass it to client
  11. That i think happend because mouse it not same position with cursor or try put the u, v, w at element position
  12. That can a give it with marker and shader
  13. source is the mouse click you will get the postion put with ground and set your player there
  14. you mean have color or flashing?
  15. Dimos7

    Show Car

    post the code here
  16. Dimos7

    Show Car

    local is for that function only you can't use it outside without it you it global varibal
  17. Dimos7

    Show Car

    it not make sence
  18. Dimos7

    Show Car

    hmm what exacly it says?
  19. Dimos7

    Show Car

    function makeVehicles() local modelID = guiGridListGetItemText(carGridList, guiGridListGetSelectedItem(carGridList), 1) local x, y, z = getElementPosition(localPlayer) local veh = createVehicle(modelID, x, y+5,z) local vx, vy, vz = getElementPosition(veh) setCameraMatrix(vx, vy, vz, vx, vy+10, vz+5) setTimer(function() destroyElement(veh) setCameraTarget(localPlayer) end, 10000, 1) end try this
  20. getCursorPosition addEventHandler("onClientClick")
×
×
  • Create New...