Jump to content

eAi

Retired Staff
  • Posts

    2,986
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by eAi

  1. No, it won't. Remember 'source' is a global variable - you don't specify it as an argument. The syntax is just oldnick, newnick.
  2. eAi

    How 2

    Neater to just disable it in the ACL.
  3. Try it? It kinda depends what playerSpawn is, the rest you've copied and pasted...
  4. If you've found something missing on the wiki, please add it for us and everyone else
  5. Type 'debugscript 3' in the console. You'll see scripting errors on screen then.
  6. eAi

    Commands

    I'd also point out that you don't need to be creating ZIP based resources. Just use a folder while testing and use zips for release.
  7. You have got 'debugscript 3' enabled right?
  8. Compiling has the one benefit of reducing the script size. Thats not really an issue for most resources though.
  9. Any errors in the script debug console? Does it know what theCar is? Shouldn't you be doing it on every other vehicle (except the local one)? Be aware this will likely produce worse sync.
  10. eAi

    ACL

    I'd strongly suggest you do not do this. It's just bypassing the whole system and we cannot remotely encourage that. The system is there to make admins aware of what they're giving users access to, you shouldn't assume that the user even has an Admin group - they could easily rename it to anything they like or decide to have a completely different structure. I know it is a bit inconvenient to have to edit the ACL, and we may look at simplifying it in the future, but it's for the best!
  11. We'd strongly encourage anyone interested in posting a tutorial to use our wiki. That's what it's there for, it's for the community to shape and improve!
  12. xmlCreateSubNode returns an xmlnode, you should be using xmlNodeSetAttribute on that, not using xmlFindSubNode...
  13. eAi

    Hay

    I'm locking this. Sky, you've been asking over and over for people to code you things, please have a go at learning yourself, it's not that hard.
  14. Second question: Use XML, we don't support INI files. XML is much more flexible and modern
  15. eAi

    Big bike bug?!

    The 'whiteout' bugs are associated normally with bad positions or bad rotations. Check you're setting correct values.
  16. I imagine you can't move Hay due to the maths involved. Well, you could, but it would be hard work. It's located there as that is the center of GTA with coordinates 0,0 which makes the maths easier...
  17. Why not release this as a resource and export it getVehicleEngineState as a function?
  18. My advice is to ignore the LUA handbook, it has a tendency to make no sense Just look at all the wiki examples and go from there.
  19. eAi

    Inventory

    I don't have time to document them. Have a look at admin see if you can add something to the wiki...
  20. ... let this be a lesson in providing overly general event handlers! If you add an event handler, make it as specific as possible - attach it directly to the element you're trying to handle the event for if you can. This avoids most potential incompatibilities with other resources.
  21. eAi

    Spawning

    You should not be defining spawnpoints in code, you should use a .map file and getElementsByType.
  22. eAi

    Export variable

    What code are you using?
  23. eAi

    Inventory

    You might be able to do drag and drop using the mouse down and mouse up events... You can make scrollbars and scrollpanes that would probably do what you want. Scrollpanes are areas that have scrollbars and can contain whatever you want, e.g. a load of images that you scroll through.
×
×
  • Create New...