Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. JR10

    Abseil problem

    Not really, elements can be stored in element data.
  2. JR10

    Abseil problem

    @NearGreen Do you even know what the script does? A simple isElement check will suppress the warning, not sure whether the script will function correctly then or not. Before the warning line: if (not isElement (ped)) then return end
  3. JR10

    help (DXdraw)

    The script is clientside, start it after you do /debugscript 3
  4. You could suggest something on the bug tracker.
  5. No. All the scripts are downloaded first then ran. You'll need to use setCameraMatrix server side.
  6. JR10

    help (DXdraw)

    Post any errors in /debugscript 3
  7. JR10

    Import Map

    Just add more lines? Try to explain better. Just change the path in engineLoadDFF and the model in engineReplaceModel. Don't forget to include your files in the meta.xml file.
  8. JR10

    Import Map

    If you mean replace the original ones then you need the engine functions: https://wiki.multitheftauto.com/wiki/Cl ... _functions
  9. JR10

    Inventory

    A vague question like that makes me assume that you know nothing. What exactly puzzles you? UI? Then look for dx or gui examples. Connection between server and client? A medium scripter should know that. You already know SQLite. You can just start by designing the interface. So please be more specific else you'll get equally vague answers.
  10. Try the same thing but without a walkstyle, perhaps sprint doesn't work with certain walkstyles.
  11. JR10

    Inventory

    You need to learn the basics first. Check the wiki for tutorials. Here's one: https://wiki.multitheftauto.com/wiki/Sc ... troduction You will need to learn SQL to use databases, check my tutorial: viewtopic.php?f=148&t=38203
  12. My bad, it's forwards not walk, try this: function setPedZombiSprint() for i,ped in ipairs(getElementsByType("ped")) do local zombi = getElementData(ped,"zombie") if zombi then setPedControlState (ped, "forwards", true) setPedControlState(ped, "sprint", true) end end end
  13. You need to make the ped walk first. function setPedZombiSprint() for i,ped in ipairs(getElementsByType("ped")) do local zombi = getElementData(ped,"zombie") if zombi then setPedControlState (ped, "forwards", true) setPedControlState(ped, "sprint", true) end end end
  14. It's also made to protect server owners from compiled server side scripts. Someone can make a gamemode with back doors and compile it, then he can use it to abuse on any server that runs the gamemode. It happened before.
  15. JR10

    -

    You will need to detect when a ped is shot with onPedDamage. Check the slothbot resource on the community, it has what you want. Also, please read this: https://forum.multitheftauto.com/viewtopic.php?f=91&t=47897
  16. It should, it's exactly like pressing the sprint key on your keyboard.
  17. Before we could create and query custom databases, there were only one SQLite database for a server, the registy.db database. And to query MySQL databases you had to use modules.
  18. Even if that works, what if you want a namespace.create() function that returns a new object. It won't work, I tried several things before, none worked.
  19. They're not the same at all. executeSQLQuery acts on registry.db only, it can't manipulate other SQL databases, so it's only SQLite obviously. dbQuery on the other hand can open other databases and supports both MySQL and SQLite. Just don't use executeSQLQuery.
  20. Another approach would be something like this: local classCode = [[ Class = {} Class.__index = Class function Class.create() return setmetatable({}, Class) end]] function getClassCode() return classCode end And then at the start of your other script: loadstring(exports.myresource:getClassCode())()
  21. You can get it with getOriginalHandling You can also read this: http://gta.wikia.com/Handling.cfg/GTASA
  22. http://stackoverflow.com/questions/1945 ... xecutables http://stackoverflow.com/questions/1889 ... script-exe http://stackoverflow.com/questions/1834 ... executable http://luaforge.net/projects/l-bia/ Want more?
  23. The handling function takes 4 parameters, yet you only send 2 arguments.
  24. Are you that isElementVisibleTo is what you need? You're talking about a nametag script, so the element must be on the screen, not just visible. From isElementVisibleTo wiki: Perhaps this is what you need: isElementOnScreen
×
×
  • Create New...