Jump to content

Patrick

Moderators
  • Posts

    1,140
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Patrick

  1. Patrick

    AFK system

    You can use getPlayerIdleTime, thats make it really easy.
  2. If everyone has to see, call it on server side. Try to find which resource use the most CPU with performancebrowser: https://wiki.multitheftauto.com/wiki/Resource:Performancebrowser - use the following option to see detailed informations: d
  3. Hi. 170 markers should not cause continuous FPS drops, after creation. Maybe you have an onClientRender event where you loop trough these markers in every frame? Or something similar?
  4. @Maruchan (Please name your threads properly, instead of "help me pls". This isn't the first time I have renamed it. Thanks.)
  5. No need detachAll before ped destroying anymore, it does it automatically for you. But test it please, the warning still appears or not?
  6. @cocowen Probably fixed, can you try with latest version? download here
  7. pAttach and bone_attach use different parameters (different bone IDs / offsets), you have to reposition them. It isn't enough to just copy/paste them. For weapons mostly you have to use: addCommandHandler("testweapon", function(player) local object = createObject(356, 0, 0, 0) exports.pAttach:attach(object, player, "weapon", 0, 0, 0, 0, 0, 0) end)
  8. You have to detach objects first with detachAll. (I'll fix it in next release)
  9. I can't reproduce it, can you send me a proper example resource? ... btw the problem is the ped (element), not the 'object'. Where 'element' defined, and is it on server or client side?
  10. If you attach object on client-side? No, others can't see it, only the client.
  11. On client side functions return true or false, depeding on it was successful or not. (For example: attach returns true if objects attached successfully, and false if not) But on server side (almost) always returns true, even if it failed. (because it returns the result of triggerClientEvent)
  12. Olyan sort próbálsz meg insertelni, aminek az elsődleges kulcsa már létezik egy másik sornál. Nem lehet két sorod azonos elsődleges kulcsal.
  13. Igen, ha külön resourceban van a csatlakozás, akkor azt a resource-t ("mysql") nem szabad újraindítani és elsőként kell elindítani.
  14. Akkor meg rossz a query, mindig ad vissza sorokat. iprint-el írasd ki a bans táblát és nézd meg mi van benne, vagy phpMyAdmin-ban futtasd le kézzel a SELECT-et. Lehetséges, hogy nem jó az expiraton és olyat is visszaad amit nem kéne.
  15. Nem adhat vissza true-t ha sehol nem returnolsz true-t, valahol máshol lesz vele valami.
  16. Nem létezik olyan functionod, hogy 'attemptRegister'. triggerServerEvent-et akartál használni gondolom, csak elírtad.
  17. Maybeee, idk. I tried to reproduce what you did in the video, but I can't. Works fine for me.
  18. Wrong language, moved to Portuguese section.
  19. Wrong language, moved to Spanish section.
  20. Wrong language, moved to Portuguese section.
  21. Wrong language, moved to Spanish section.
  22. Is it works fine if you don't modify weapon property?
  23. Ez ennél sokkal-sokkal bonyolultabb, teljesen rossz úton jársz, kevered a client és server oldali függvényeket is. Ajánlom, hogy ezt hanyagold egy kicsit, tanulj/próbálj csinálni hasonló egyszerű dolgokat és utána térj vissza rá. - https://wiki.multitheftauto.com/wiki/Main_Page - https://wiki.multitheftauto.com/wiki/Scripting_Introduction - https://www.lua.org/manual/5.1/ - https://wiki.multitheftauto.com/wiki/Category:Tutorials - https://forum.multitheftauto.com/topic/34453-manuals - https://forum.multitheftauto.com/topic/64228-the-ultimate-lua-tutorial/ - https://forum.multitheftauto.com/topic/121619-lua-for-absolute-beginners - https://forum.multitheftauto.com/topic/95654-tut-debugging/ - https://forum.multitheftauto.com/topic/114541-tut-events/ - https://forum.multitheftauto.com/topic/117472-tut-scaling-dx/
×
×
  • Create New...