Jump to content

Lloyd Logan

Members
  • Posts

    642
  • Joined

  • Last visited

Everything posted by Lloyd Logan

  1. Perfect! How would i get the health of a vehicle! Thanks
  2. Hey, is this piece of code correct? local health = getElementHealth( thePlayer ) if (health=<50) then I am not sure about the second line? WHat the layout of that should be?
  3. Do you wan't it shown when the Login, or join for the dxDrawText?
  4. What's with the blacking out every 1 second. It gets annoying after awhile.
  5. dxText needs onClientRender I know, I mean change that just like the way MR.S3D has done.
  6. Thats because you have onClientRender, change that.
  7. local tempData = { } addEventHandler ( "onPlayerWasted", getRootElement(), function ( ) tempData [ source ] = { weapons = getWeaponsTable ( source ), skin = getElementModel ( source ) } end ) addEventHandler ( "onPlayerSpawn", getRootElement(), function ( ) if ( tempData [ source ] ) then setElementModel ( source, tempData [ source ].skin ) for weapon, ammo in pairs ( tempData [ source ].weapons ) do giveWeapon ( source, weapon, ammo, true ) end end end ) function getWeaponsTable ( thePlayer ) local weapons = { } local hasAnyWeapon = false for slot = 0, 12 do local weapon = getPedWeapon ( thePlayer, slot ) if ( weapon > 0 ) then local ammo = getPedTotalAmmo ( thePlayer, slot ) if ( ammo > 0 ) then weapons [ weapon ] = ammo hasAnyWeapon = true end end end if ( hasAnyWeapon ) then return weapons end end
  8. I'm not sure how you could get them, but that could be something to work on!
  9. I'm on my phone atm so I don't really know what I am doing.
  10. addEventHandler ( "onPlayerSpawn", root, function ( ) local team = getPlayerTeam ( thePlayer ) if (team) then local r, g, b = getTeamColor ( team ) setPlayerNametagColor ( thePlayer, r, g, b ) end )
  11. Lloyd Logan

    Bots

    What's wrong with the panel?
  12. Lloyd Logan

    Bots

    Please read my previous post, if it was possible, everyone would do it!
  13. What do you wan't to happen when you type /staff for the second time? You're not making much sense.
  14. Lloyd Logan

    Bots

    Lol, you can't, make fake players, that defeats the purpose. You can create peds though.
  15. Lloyd Logan

    Bots

    That's what I mean, I don't think its possible to do either? Maybe bots that interact, but not play.
  16. Lloyd Logan

    Bots

    I think you could do, createPed then https://wiki.multitheftauto.com/wiki/Resource:Dxscoreboard
  17. Lloyd Logan

    Bots

    I don't know what you mean, but createPed could be of use
  18. I try to make a blue marker where i can spawn cars So you want to replace the GUI?
  19. Does GTA single player work?
  20. Both of them are GUI, what are you trying to do?
×
×
  • Create New...