Jump to content

Dimos7

Members
  • Posts

    1,546
  • Joined

  • Last visited

Posts posted by Dimos7

  1. For the first you need check the serial of a player because different serial mean different divice for the second part you need check the field of money that player has from the database and give it to player 

    getPlayerSerial 
    dbQuery 
    dbPoll 

     

  2. local id = 356
    
    local txd = engineLoadTXD('models/m4.txd')
    engineImportTXD(txd, id)
    local dff = engineLoadDFF('models/m4.dff')
    engineReplaceModel(dff, id) 

    2 argument on load txd is bollen not the id of weapon and in dff is only 1 argument

  3. Go tou the script folder find the script has the error and look for that line and change that line to be a text using tostring or idk for make it strings text and not a boolen 

  4. function playerDamage(attacker, bodypart, loss)
      if bodypart then
           hp = loss
         addEventHandler("onClientRender", root, function()
            local dmg = dxDrawText("- "..hp.." hp", x + 10 - w / 4, y - 15 - h - 12, w, h, tocolor(255, 0, 0), 1, "default-bold","left","top",false,false,false,true)
            end)
      end
    end
    addEventHandler("onClientPlayerDamage", root, playerDamage)

    try this

×
×
  • Create New...