Jump to content

KariiiM

Members
  • Posts

    1,312
  • Joined

  • Last visited

Everything posted by KariiiM

  1. Post part of your code
  2. I understood you, what about you do that with SQL?
  3. What you want to do?
  4. Something like that is correct local mainTable = {} mainTable[1] = {} mainTable[2] = {}
  5. https://forum.multitheftauto.com/viewtopic.php?f=91&t=93379
  6. There are 3 Ports that you've to fills them UDP(22126),TCP(22005) and UDP(22003) in a "virtual server" on your router, show any screenshot of your virtual server of your router maybe you did some mistakes
  7. There's no function for that, you can create it by yourself myTable = {}
  8. What about Timers and getElementData / setElementData ? Timer too in case you did it like that for example: setTimer ( functionName, 1000, 0) It will restart the function for each one second...
  9. I know it, it mean the player that got damaged by the attacker, if you're in server side simply you will put source but in client side , there's localPlayer BTW, explain exactly what do you want to make and maybe i can help you
  10. Trigger function for example
  11. So source isn't defined in client side only in server side you've to replace it by localPlayer or getLocalPlayer() no matter
  12. Bad usage of functions it may drop the player's CPU
  13. source is not defined in client side function DamageToPed(attacker, weapon, bodypart, loss) if weapon and attacker and attacker ~= getLocalPlayer() then if weapon == 49 then --Rammed outputChatBox("Rammed") end if bodypart == 9 then --HeadShot setElementHealth(getLocalPlayer(), 0) end cancelEvent() end end addEventHandler("onClientPedDamage", getRootElement(), DamageToPed)
  14. source defined it self no need to add an argument on the function
  15. dbExec(DB_connection, "ALTER TABLE world ADD value TEXT") Add this line to your code then after restarting your script the new column will be added automaticly then you can remove this line from your code since Sqlite isn't editable like mysql
  16. Are you using dbFunctions?
  17. KariiiM

    F1 Buttons

    Yes you can do that
  18. KariiiM

    Help

    Store it in table , use insert.table on an empty table and loop the data by using ipairs or pairs
×
×
  • Create New...