Jump to content

Bonsai

Members
  • Posts

    1,031
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Bonsai

  1. Bonsai

    Sirens

    You could use getVehicleSirensOn whenever the player presses the key bound to "horn" control. That way you could create your own events that trigger when sirens are turned on/off.
  2. Hey Peeps, I finally wanna solve my spectator mode problem. When the localPlayer dies, I use setCameraMatrix(getCameraMatrix()) to make the camera stop following and prevent this shaking thing. But after about 3 seconds it still starts to shake.. Also, sometimes the camera flies back to the last position of the dead player and you can still see the body lying there. Its not that bad to see the dead body since they can be moved away, but I don't understand why the camera seems to auto focus the player, even though I cleared the camera target before. I tried using spawnPlayer on death to prevent any camera manipulation caused by death, but its basically the same thing, camera focuses the player. Only difference is the Player isn't dead. I really need someone who knows about this.. It became really annoying, and checking how its done in race resource wasn't helpful at all. Bonsai
  3. Check the admin resource for gridlist example. If you want to cut the "user." just use string.gsub.
  4. It is possible. Just use the forum search and/or google. Keywords: 3d, text, mta sa
  5. But it would still be possible to use the command without being inside that marker, wouldn't it?
  6. Instead of triggering a command u just call the function that is attached to it. If thats what u mean.
  7. What functions do you use that are not available server side? From what I can see there are quite a lot server side ped functions.
  8. I didn't really check the code, but I suggest you do use a rendertarget. Its easier to handle in my opinion.
  9. Else use: addCommandHandler("test",openMyGate, true) and add this command to the acl.
  10. I guess the second problem is because certain stuff doesn't work when elements aren't streamed in.
  11. I discovered using the postGUI argument when drawing to a render target will make it fail. Maybe you will need this.
  12. And you seriously put some progress in your signature? According to your questions this progress wasn't made by you.. Everything you need to know about getElementData() is written down here: https://wiki.multitheftauto.com/wiki/GetElementData
  13. As I said, newer maps have a collisions attribute. If you don't use any scripts (don't think so), that has to be the problem.
  14. Why would anyone use a loop to get this done.. Thats what the visibleTo argument was made for.. Loop might be an alternative way, but its stupid.
  15. The Wiki and maybe a bit testing by yourself provides anything you need to know.
  16. Try to add some outputChatBox to see how far it gets. But first make sure you have access to the command, since u made it restricted. https://wiki.multitheftauto.com/wiki/AddCommandHandler addCommandHandler ("addPickup", addPickup, true) Try addCommandHandler ("addPickup", addPickup) instead.
  17. use /debugscript 3 and then try again. It will show you exactly whats wrong. If you still don't know how to fix, post the error message here.
  18. What about debuglog or a small description?
  19. Use root. Thats the parent of anything, therefore its for all players.
  20. By leaving the server, it forces him to logout ... Ohh and I thought People stay logged in forever when after they once logged in Hey was talking about relogin, thought its about logout and in again.
  21. Hmm, so you want the collisions to be off? True would make them be enabled. Newer maps have a collision attribute in their map files. Maybe some server side function attached to resource start event is modifying something. This would only affect you while you are on the server.
  22. I think I got what you are doing there now. I'm not into this kinda whatever it is called. So about your problem, what do you mean by collisions? Since no one else replied yet this doesn't seem to be clear.
  23. Maybe you should just cancelEvent onPlayerLogout.
×
×
  • Create New...