• Content count

  • Joined

  • Last visited

  • Days Won


IIYAMA last won the day on April 10

IIYAMA had the most liked content!

Community Reputation

410 Superstar


  • Rank
  • Birthday 01/01/2016


  • Gang
  • Location

Recent Profile Visitors

4,777 profile views
  1. fileExists returns false after resource restart

    @JeViCo Once you change the file, it is no longer valid for MTA and will be re-downloaded.(your previous problem, which is related to file security) Please show me your code. Because it looks like you either didn't close the file in time or deleted it too fast.
  2. fileExists returns false after resource restart

    That doesn't happen for me. Are you editing the files or something like that? (Or doing this before the resource has started?)
  3. my code is make lag

    I am sorry, I do not play CIT. Please make some of your own adjustments first based on my feedback, before you give it to somebody else. That is the least thing you can do in order to understand your own mistakes.
  4. my code is make lag

    Every time you press a key. function Switch(button,press) -- yes here end addEventHandler("onClientKey", root, Switch) = You create a new function/functions with an addEventHandler attached to it. With other words, you created a memory leak by doing this: addEventHandler("onClientKey", root, function (button, press) if button == a[0] then if (press) then if wep == 0 then setPedWeaponSlot(localPlayer, z+1) else setPedWeaponSlot(localPlayer,0) end end end end) For every next click you execute those addEventHandlers * times you clicked. The longer you are doing this, the more lag it creates. You are having 8 loops that execute 13 times. 8 * 13 = 104 looping. for z= 0,12 do -- yes this 8 times. end How about you just use 1? I do not even know how it is suppose to work, so I am not going to rewrite your code. What I do recommend you to is write very clear how your code is suppose to function. And write down which steps the code has to take to achieve it's goal. >>> Writing a new unknown functionality without defining it's steps is bad practice. (Unless you have written something similar before) <<< Not everybody agrees to this, that is fine.
  5. Emergency Issue.. help quick, please

    I assume you already moved on. But for the next time Open the editor dump file(in resources) and check if anything is left in it.
  6. ACLPANEL problem

    <object name="resource.admin2"></object> * (just as what Overkill said) Or rename the resource folder `admin2` to the original name: `admin`.
  7. Using entity name as variable

    Yes, more than enough. And if you want to be 100% sure, you can check the wiki logs and find the person that wrote the comment + ask him/her yourself.
  8. Using entity name as variable

    If you did use OOP, then you would be overwriting the MTA classes. https://www.lua.org/pil/16.1.html > It should be fine as long as you do not use OOP or overwrite predefined variables. https://wiki.multitheftauto.com/wiki/Predefined_variables_list Be aware that other people who do use OOP and want/need to edit your resource will be having a hard time. So no worries, just but be consistent in your code.
  9. Need some help with making cutscene's

    https://wiki.multitheftauto.com/wiki/OnClientVehicleCollision https://wiki.multitheftauto.com/wiki/SetGarageOpen

    See example on wiki: https://wiki.multitheftauto.com/wiki/SetLowLODElement
  11. Killing timers in a table

    arenaSrv.timers[i] = nil -- OR -- outside of the loop arenaSrv.timers = {} -- reset the table You have remove it from the table. Nilling a variable is not the same.
  12. damageTimer

    Mistakes: 1. You didn't save your timer. + A timer isn't the same as table. 2. If you set the element data to "no" before you set the timer = it has no function at all. You might consider remove it.
  13. [HELP]Round Amount

    math.floor(value / 10 + 0.5) * 10 This round based on 10. (Inspiration) __________________________________ Experimental local value = 342 local restValue = value % 5 print(restValue) if restValue > 2.5 then value = value + 5 - restValue else value = value - restValue end print(restValue) print(value)
  14. [HELP] only A to Z and 0 - 9

    Google is smarter than me. https://stackoverflow.com/questions/45259879/how-do-i-remove-all-special-characters-punctuation-and-whitespaces-from-a-strin
  15. Account System Problem on High Player Numbers

    Are your queries limiting the search result? (Just check it if you haven't done it yet, because not doing it can improve the performance with 0 t/m 1000% depending on the situation) 1. Limit search results Your situation: queries are taking too long to complete and your lua memory is waiting for the results.(because you didn't use callbacks) 2. Use callbacks instead of pause the lua memory. 2.1 See also coroutines: https://www.lua.org/pil/9.1.html 3. Last resort You have to queue your queries and let it better work with your internal lua memory.