Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/05/22 in all areas

  1. New service to help promote your server For 12 euros, you can buy a top 20 position in the MTA server browser for 20 days. Ideal for getting your amazing gamemode seen by more players. See here for details: https://www.multitheftauto.com/toplist/ All proceeds are used to support development and the upkeep of MTA services; by helping yourself, you're also helping out MTA by donating.
    1 point
  2. How is createCharacter triggered? I think I might see the problem. Do you have a lot of elements spawned (vehicles, peds, objects, etc. even if they're out of the streaming range)? It seems your handler function for createCharacter is attached to the root element and all its children. If you trigger it on the root element, rather than, for example, the target's player element, then what actually happens is the same event is dispatched on each element with the given element as its source, and your handler is attached to be called on any child of root, in other words, your handler gets executed as many times as there are elements. In other words, if you have n elements in the element tree, your handler attaches an new event handler for onClientRender n times! Your createCharacterPanel function gets called n times per frame, or 60n times for a client running 60 fps. A quick fix would be to one of the following: change the triggerClientEvent calls everywhere to use the target player as source (since players rarely have any child elements, the event gets dispatched only once per trigger) (likely the best option here), OR add the fourth argument to addEventHandler for createCharacter set to false, to make the handler only get called for the root element and not its children (less preferable; however you should add that to the onClientRender handler attachment regardless), and/or add an if check in the handler to verify that source == getRootElement() (least preferable option as it means your function still gets called tens or hundreds of times only to exit early when you could avoid calling it at all in those circumstances) Doing options 1 and option 2 and/or 3 at the same time will break functionality, as you'll call with a player as source but the function will expect root and only root, disallowing its children (and the player is a child element of root)
    1 point
  3. You do not need to use a module for bcrypt. You can use passwordHash and passwordVerify.
    1 point
  4. .كلام مهم جداً لنا كمسلمين. فعلًا نلاحظ هذه الكلمات بكثرة سواءً في الحياة الواقعية أو في الحياة الافتراضية
    1 point
  5. When you spoofed your hardware it should have come with a set of instructions on how to do so. Check to see if there's a way to undo those changes. If there isn't, try reinstalling your operating system and connect to any server
    1 point
  6. ( السلام عليكم ورحمة الله , رمضان مبارك على الجميع ) حبيت اشارك معاكم مهمة بسيطة [ شوتر على شكل مهمة لسيرفرات الهجولة ] -: معلومات عن المهمة عند بدء المهمة يمكنك المشاركة فيها بالكتابة في الشات [ شوتر ] اطلاق صاروخ من المركبة بالضغط على زر الماوس اليسار [ Shift ] القفز بالمركبة بالضغط على يتم توزيع عنصر بساحة المهمة بشكل عشوائي عن ملامسته يرفع صحة المركبة صاحب اخر مركبة يحصل على مبلغ عشوائي صورة لساحة المهمة ( لتحميل المهمة من موقع اللعبة ) المود غير مشفر رمضان كريم
    1 point
×
×
  • Create New...