Jump to content

Dimos7

Members
  • Posts

    1,546
  • Joined

  • Last visited

Everything posted by Dimos7

  1. createProjectile
  2. isObjectInACLGroup
  3. Yes it is
  4. setPlayerHudComponentVisible("all", false)
  5. I think the first no as for second idk
  6. np mate have fun
  7. then use toJSON function and store them as table
  8. isElementWithinMarker Use this
  9. You can't repalce cj clothes otherwise sorry as far i know except if you want change cj model as it is
  10. For replace cj model cloths use shader see the examble on wiki
  11. What do you mean?
  12. 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)
  13. Dimos7

    DxTimer

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

    DxTimer

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

    DxTimer

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

    Show Car

    post the code here
  21. Dimos7

    Show Car

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

    Show Car

    it not make sence
  23. Dimos7

    Show Car

    hmm what exacly it says?
  24. 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
  25. getCursorPosition addEventHandler("onClientClick")
×
×
  • Create New...