Jump to content

ixjf

Members
  • Posts

    647
  • Joined

  • Last visited

Everything posted by ixjf

  1. No, you have to find the LOD model ID and use removeWorldModel.
  2. You need to remove the LOD model (it is a low resolution model that is loaded when the object is too far from the camera).
  3. ixjf

    [TUT]latentEvents

    Nop, what you are doing is the same as using triggerClientEvent, it's sending all the data in one time. triggerLatentClientEvent exists for some reason.
  4. ixjf

    [TUT]latentEvents

    Your code doesn't really explain the use of triggerLatentClientEvent, you used the size of the file as the bytes per second rate meaning it's sending the data in one second (which is not recommended for big files).
  5. A única coisa que seria possível era copiar o vírus para o computador do jogador, mas não é possível executá-lo.
  6. Não é preciso se preocupar com nada, ou vai andar assim com todos os jogos multiplayer que jogar?
  7. ixjf

    Is this possible?

    Well, call the function for all files in the resource. The function copies the file content to the client's computer (I don't recommend using this for client scripts, instead use the cache attribute in the 'meta.xml' file) - the good thing here is that it's faster and there's no download bar on the screen.
  8. ixjf

    Is this possible?

    No, it isn't. There is a list of functions and events in the description of the resource. The syntax of the function downloadFile is the following: boolean downloadFile ( string filePath, string savePath, int interval ) I added a symbol before 'boolean' because the function only returns a boolean value (false) when something doesn't go right, like the arguments are invalid. filePath - This is the path (including file name and extension) to the file you want to download. savePath - This is the path where the file will be saved (client's computer - root path is %MTA_FOLDER%/mods/deathmatch/resources) interval - This is the interval, in milliseconds, between each client event trigger (basically this is the interval between each data sending). Setting a very low interval is not recommended.
  9. ixjf

    Is this possible?

    https://community.multitheftauto.com/index.php?p= ... ls&id=3379 Now tell me it isn't possible.
  10. ixjf

    Is this possible?

    No, it is possible at the moment.
  11. ixjf

    Is this possible?

    It is possible. As for the downloadFile function, for now there are ways to do the same job.
  12. Dude, you havent got event handler (Sry if u didnt post the full script.) Why is an event needed here? The code is executed as soon as it is loaded.
  13. Aprendendo Lua você faz o que quiser... Se tiver afim de pagar um pouco, recomendo dar uma olhada ao livro "Lua Programming Gems" depois de saber Lua, pois esse livro lhe ajuda a programar eficientemente (esse livro está na Amazon, dá uma olhada lá).
  14. ixjf

    Strange bugs

    You add it like this: (I only know it works for windows servers, I don't know how long it will take before it can be used for other systems. These must also be up-to-date.) More info: viewtopic.php?f=108&t=29990&start=30 As far as I know, it's called cache now (that's what I think, protected isn't listed on the Wiki).
  15. ixjf

    Strange bugs

    There is no such thing, you are confusing with the server's configuration file. @ixjf ye? well it is already working for windows servers, I don't know how far it is with a Linux servers. If you don't believe me, go try it your self .... and ........! What does that "protect" option do?
  16. ixjf

    Strange bugs

    There is no such thing, you are confusing with the server's configuration file.
  17. Examples are supposed to be correct, otherwise they are useless.
×
×
  • Create New...