Jump to content


  • Posts

  • Joined

  • Last visited


  • Gang

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

jingzhi's Achievements


Pee-Wee (21/54)



  1. Hello everyone, I am now working on a login system. I noticed in the mta wiki that it is recommended to use the function passwordHash to encrypt passwords. However, they also said that there can be short freezes if using this algorithm. Although I already used a call back function as they suggested, I still want to make sure it will not cause any lag in the server. Has anyone used this function yet? Please tell me what happens when using this function (especially on a server with many players). Thanks in advance!
  2. As it indicated in the wikipage of dxDrawText (https://wiki.multitheftauto.com/wiki/DxDrawText), the font scale can be splitted into 2 variables. However, I am not quite sure how to do that. Can anyone give me an example on how can it be implemented? Thanks in advance!
  3. Hi everyone, I am working on a general database script and I am wondering if establishing multiple database connections in different resources will affect the performance. If that is true, can database connections be shared in different resources(e.g. by exporting function)? Thanks in advance! Moreover, if I export a function that uses database connection to a different resource, does the function use the dbconnection established in the resource exporting the function, or it must use the connection in the resource I'm calling the function from?
  4. Make sure the group of your db user is set to "host"
  5. I remember there is an event that is triggered when the player starts entering a vehicle, you can use this one and if the engine is off then after the player enter the vehicle use setEngineState to turn it off. When the player exit you can just easily use the onPlayerVehicleExit trigger and turn the engine off with setEngineState
  6. Dude you should learn a lot more then come back and ask....
  7. jingzhi


    Lol answer from the original creater
  8. Show the full code, also show your codes with the "lua" funcion, otherwise it's hard to read
  9. use getVehicleHandling() The max speed is also depending on the road
  10. Hello! meta = xmlLoadFile ("meta.xml") for index,node in pairs ( xmlNodeGetChildren ( meta ) ) do xmlLoadFile returns false, here is the xml file: Any thoughts?
  • Create New...