Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. JR10

    Help

    Close any cheat programs or trainers running. Make sure you check the processes running as the cause of the issue might be a hidden process. You might want to check this as well: https://wiki.multitheftauto.com/wiki/Anti-cheat_guide
  2. JR10

    [TUT] SQLite

    This should work if the row for the account name is `name`: dbQuery(callback, database, 'SELECT * FROM accounts') function callback(qh) local result = dbPoll(qh, 0) for index, row in pairs(result) do local account_name = row.name local player = getAccountPlayer(getAccount(account_name)) if (isElement(player)) then outputChatBox('Hi', player) end end end
  3. JR10

    [TUT] SQLite

    Depends on what identifies them in the table. Since we're talking about accounts, how do you identify a player's account? By knowing that, you can simply retrieve the account from the table, then loop through players trying to find the player with that account. If you're using the default MTA account system, then getAccountPlayer will get you the player with that account. If it's a totally custom accounts system, then only you would know how to get an account's player. Something like: dbQuery(callback, database, 'SELECT * FROM accounts') function callback(qh) local result = dbPoll(qh, 0) for index, row in pairs(result) do local account_name = row.name -- now find the player with that account name end end
  4. I don't think that's going to happen but the enforcement date has been delayed. https://code.google.com/p/mtasa-blue/so ... ail?r=6200
  5. JR10

    [TUT] SQLite

    If you're MySQL, then I will recommend that onResourceStart, you get all the accounts and store them in a table. That will allow easier and less consuming access. I don't really get your first question but as for the second, dbQuery(callback, db, 'SELECT * FROM accounts WHERE name = ? LIMIT 1', name) should do. name is the name of the account.
  6. You can use fetchRemote or triggerLatentClientEvent to download files. You can then use fileWrite to save the files. fetchRemote triggerLatentClientEvent fileWrite Some related resources that you might find helpful: https://community.multitheftauto.com/index.php?p= ... ls&id=6339 https://community.multitheftauto.com/index.php?p= ... ls&id=7912
  7. There are already a couple of applications that use the API to compile/encrypt the scripts without having to access the webserver: viewtopic.php?f=140&t=64900 viewtopic.php?f=108&t=64860 You can write a simple system in Lua to compile all the script files using the API: https://luac.multitheftauto.com/api/ https://wiki.multitheftauto.com/wiki/FetchRemote
  8. I don't think it works anymore, it's badly scripted and it hardly worked before. I don't have it anymore either. Axel, can you please re-upload it for him? Not on the community though.
  9. Account data uses SQLite, so it shouldn't lag.
  10. Use the findRotation function to make your ped face point2. Also, use setPedControlState to make the ped walk. You might need to avoid walls and buildings, use isLineOfSightClear for that. setPedControlState isLineOfSightClear findRotation
  11. Change: setTimer( guiCreateProgressBar(X,Y,width2,height2,false) , 60000, 1 ) To: setTimer(guiCreateProgressBar, 60000, 1, X,Y,width2,height2,false)
  12. XML is consuming, I remember it crashing a server with only 15 players playing. Since you're saving player data, just use account data.
  13. function add(number1, number2) return number1 + number2 end local sum = add(1, 2) الفنكشن حترجع النتيجة
  14. You can use the getResourceInfo function to check the type of the resource. I don't think it's possible to get the resources in a certain directory.
  15. addEventHandler("onVehicleEnter",root, function () setVehicleDamageProof(source, true) end) و كودك الأصلى صحيح
  16. Use the friendly name argument, specify an empty string.
  17. If it's that easy, someone will.
  18. Seriously, who would pay for that? You can ask in the scripting section and someone will just provide it.
  19. JR10

    [WIP]MTAM

    Nice idea, I like the GUI. Good luck!
  20. You changed the resource's name. Resource name must be 'business' for settings to work.
×
×
  • Create New...