Jump to content

UnG//Macaus

Members
  • Posts

    37
  • Joined

  • Last visited

Everything posted by UnG//Macaus

  1. Does not work without errors in debugscript
  2. Bad argument @ 'getPlayerTeam' [Expected player at argument 1, got vehicle] Bad argument @'getPedOccupiedVehicle'[Expected ped at argument 1, got vehicle]
  3. UnG//Macaus

    Helpe me

    Can anyone help me solve this error? everything works, but I got errors in debugscript Debugscript: WARNING: Bad argument @ 'getPlayerTeam' [Expected player at argument 1, got vehicle] Server side Zona = createMarker(1540.8887939453, -1630.9000244141, 12, "cylinder", 20, 255, 255, 255, 0) function Funcion (source) if isElementWithinMarker(source, Zona) then playerTeam = getPlayerTeam ( source ) Clann = getTeamFromName ( "Police" ) if ( playerTeam ) == Clann then veh = getPedOccupiedVehicle(source) if (veh) then moveObject ( objeto, 3000, 1541.0999755859, -1627.6999511719, 9.4 ) else moveObject ( objeto, 3000, 1541.0999755859, -1627.6999511719, 9.4 ) end end end end addEventHandler ( "onMarkerHit", Zona, Funcion )
  4. cool, but all the icons of the weapons could be white
  5. Works perfectly, thank you very much
  6. I do not quite understand What do I have to do, what do the first X have to do with it? The normal is thus appear I need you to stay that way
  7. I use this on my HUD, but is from the top down. I wanted it to be from the bottom up, does anyone know how to do this? local screenW,screenH = guiGetScreenSize() local resW,resH = 1280,720 local sW,sH = (screenW/resW), (screenH/resH) local Health = getElementHealth (localPlayer) dxDrawRectangle(40*sW, 559.2*sH, 11*sW, 138*sH, tocolor(0, 0, 0, 80), false, false) dxDrawRectangle(40*sW, 559.2*sH, 11*sW, 138*sH/100*Health, tocolor(0, 255, 0, 240), false, false)
  8. Why do not you test it? and if any mistake, let us know here and we will help you solve them
  9. We are here to help solve your mistakes, and not to do everything for you show what you have tried and we will help you solve your errors
  10. getPedStat or getPedMaxHealth
  11. [counter] and [6] are not defined in the table
×
×
  • Create New...