Jump to content

cedee

Members
  • Posts

    1
  • Joined

  • Last visited

Details

  • Gang
    right

cedee's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. function showClientImage1() guiCreateStaticImage( 0, 0, 2000, 25, "bg.png", false ) end addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), showClientImage1 ) function showClientImage2() guiCreateStaticImage( 8,5, 1005, 14, "bar.png", false ) end addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), showClientImage2 ) function vehicleHealth() local vehicle = getPedOccupiedVehicle( localPlayer ) if ( vehicle ) then local vehicleHealth = getElementHealth( vehicle ) local scx, scy = guiGetScreenSize() --debug test = dxDrawText( ( math.floor( vehicleHealth ) ), scx - 125,scy - 70,scx,scx,tocolor(255,255,255,255),0.9, "arial","center","top",false,false,false) --debug end Image = guiCreateStaticImage( 10, 7, math.floor( vehicleHealth ) , 10, "barprogress.png", false ) end end addEventHandler("onClientRender", root, vehicleHealth) Lagg cause, and doesn't work it.. when i restart script then refresh the healt-data and resize the "barprogress.png".. if goes down my hp then don't refresh the healt-data and resize the "barprogress.png" (sry for my bad english )
×
×
  • Create New...