Jump to content


Scripting Moderators
  • Posts

  • Joined

  • Days Won


Everything posted by srslyyyy

  1. Hi As first you need table with your vehicles which is returned by getElementsWithinColShape function. Then you would need to use loop and getVehicleType function in order to verify whether is a helicopter or a simple vehicle. This will allow you to count certain vehicles type, and process logic based on result. getVehicleType function: https://wiki.multitheftauto.com/wiki/GetVehicleType Understanding loops: https://forum.multitheftauto.com/topic/121619-lua-for-absolute-beginners/
  2. Have you tried using onClientKey event instead?
  3. Are you sure that db returns valid database connection? Tip in custom events: Use client variable instead of passing player to server - see https://wiki.multitheftauto.com/wiki/Script_security
  4. You haven't told us how those commands works. Not everyone is familiar with RP.
  5. Probably it's your code issue. So please post it there, so we could help you if possible.
  6. On server-side in any resource. If you don't have one, just create it. You'd need a folder (which would be your resource name), inside this folder, there should be meta.xml and server.lua (which will contain your code). Your meta would look like this. <meta> <script src="server.lua" type="server"/> </meta>
  7. What do you mean by shaders? Perhaps multiple textures applied by replacement shader?
  8. We require a effort from you, waiting till someone will do your job it's not a right way, and by doing so you won't learn anything.
  9. Welcome back So Citizen, myself and probably many others used your resource bone_attach resource which was great for lots of various servers.
  10. @Krzychuu skontaktuj się z administracją. Nie zajmujemy się poszczególnymi serwerami.
  11. Try processing damage through attacker side, and not victim.
  12. https://wiki.multitheftauto.com/wiki/SetFPSLimit Read Issues when increasing FPS
  13. By setting items client-side you are inviting "hackers" to your server. Be aware that someday someone will exploit that you've doing it incorrectly, which will result in player copying items and so on.
  14. Sadly it isn't, you need create replacement shader for every texture (no idea why it's like that though).
  15. Zacznij od podstaw - https://wiki.multitheftauto.com/wiki/Scripting_Introduction Potem, przykład zamiany dostępny na wiki. https://wiki.multitheftauto.com/wiki/EngineLoadDFF Najlepiej by było abyś dołączył do naszego Discorda (discord.gg/mtasa) i napisał na kanale #pl-scripting. Od razu mówię, że wymaga to wysiłku z twojej strony.
  16. Better idea would be to move it to GitHub. https://github.com/multitheftauto/mtasa-blue/issues
  17. As you did, onClientResourceStart, get all players and replace animation for them, and also onClientPlayerJoin, in case of latejoiners.
  18. https://wiki.multitheftauto.com/wiki/EngineRequestModel https://dev.prineside.com/en/gtasa_samp_model_id/ Use this site to verify if object exists somewhere on map. After clicking certain object it will be displayed.
  19. My suggestion is to put it on GitHub, it will allow us to see changes you've introduced. And in addition suggest any code changes (e.g performance wise).
  20. It would be nice to mention that's possible due of work of @Einheit-101 and @Saml1er
  21. Stop or remove runcode resource, or use ACL to restrict access to them.
  22. https://wiki.multitheftauto.com/wiki/Forks "AC is generally unsupported for forked projects and may be dropped entirely in the future. This means that you generally cannot rely on the MTA anti-cheat for your fork. We strongly advise that you write and implement your own AC."
  23. This is a trick which i do not recommend. Due of thing mentioned above. Personally i'm using a IIYAMA's way for everything, and it works perfectly.
  • Create New...