Jump to content

Bonsai

Members
  • Posts

    1,031
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Bonsai

  1. dxDrawImage: "Draws an image on the screen for a single frame. In order for the image to stay visible continuously, you need to call this function with the same parameters on each frame update (see onClientRender)."
  2. Search: https://forum.multitheftauto.com/viewtopic.php?f=91&t=72081
  3. Isn't it faster to try? https://wiki.multitheftauto.com/index.ph ... ource:Race
  4. Bonsai

    Resolved

    Is that happening inside onClientRender Event?
  5. Bonsai

    postGui

    Hey People, Is there a way to put normal gui elements on top of dx drawings that have postGUI enabled? I have some big background image thats supposed to cover the whole screen, but I need to put some Editfield on top of that. At the moment I'm disabling and enabling postGUI for dx depending on if that Editfield is visible. Bonsai
  6. If you are creating a gamemode, you should know what that error message means and how to fix it. Did you marker = {} somewhere?
  7. Just make sure you named them the right way. You can see on the examples how to do that. Restart the server after renaming or do /refresh, /reloadmaps. About those commands, well, thats your job
  8. Why do you wanna do this anyway? Just put them in meta so they are downloaded automatically, if its not about maploading or anything that has to be updated. As I said, read the data on server, send it to the client, and just write it into a new file. fileRead -> triggerClientEvent -> fileWrite
  9. function triggerWriting(filepath) if not fileExists(filepath) then outputChatBox("file doesn't exist, about to create and write it!") writeScriptsToDisk() outputChatBox("starting to write...") end end addEventHandler("onResourceStart",root,triggerWriting) This is kinda wrong. The event onResourceStart doesn't provide any filepath, it only gives you the resource that was started. Also, most times its better to use resourceRoot instead of root, when working with this event.
  10. I think you need to do some research about these functions first, because it seems you didn't understand how they work. The wiki has some nice examples. To send some file from server to client, you need to read its data and send it. Then create a new file to write in.
  11. It was ccw telling you its a bug, so they are aware of this. If they could, it would be fixed already. He suggested you a solution.
  12. Wrong. Also I don't have the impression you could actually change something without messing up everything, to be honest
  13. Bonsai

    Script bug

    You have to create a texture out of it first. https://wiki.multitheftauto.com/wiki/OnPlayerScreenShot
  14. 1000 MB? Hope thats just an example. No normal person would download that much stuff just to play on some server.
  15. As far as I can see, cAdd is only nil when you first use it. So after that it is supposed to be removing and adding on every use? I'm not sure If I understand your problem
  16. Y U NO STAY ON TOPIC So, the problem was, there was no problem?!
  17. Maybe you guys should have read the whole topic
  18. I'm not sure if onClientRender should be abused for such things. In the end, you will get lags. Maybe not in this case, but in general.
  19. Actually it also works with ipairs. Anyway, after updating it works fine again. Thanks!
  20. How that happened? I got some message to install a update if I wanna play on a server, so I did. Before, everything was working fine. Hmm
  21. Hey there, I just discovered some kind of problem that never happened before. xmlNodeGetChildren doesn't get all the children. It always misses the first one for some reason. I think, but not sure, this problem happened after some update I was forced to install. The same resource is still working on my older version server at least. Someone knows whats going on here? Bonsai
  22. please if u cant help then shut up If you can't do even the most simple script on your own, then you definitely don't belong here. You don't want to learn how to do this, you just want someone to do it for you. Unfortunately, sooner or later someone is gonna post a working script and you win.
  23. Why do you even want such a script? You obviously don't understand ANYTHING about this stuff at all. Maybe you should spend your time in a better way.
×
×
  • Create New...