Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. No one's gonna script a new one for you.
  2. He's basically asking us to give him SAUR's or CIT's vehicle system for free. You can look on the community for free ones: https://community.multitheftauto.com/
  3. https://wiki.multitheftauto.com/wiki/Sc ... de_scripts
  4. https://community.multitheftauto.com/index.php?p= ... ls&id=4871
  5. It still outputs syntax errors which might be what he is looking for.
  6. Actually there is, viewtopic.php?f=91&t=30077 MTA Script Editor is no longer in development.
  7. I removed the tutorial for generating your own auto complete files as my repo (and other topic) provides that easily.
  8. Finally got time to update this. MTAv1.5 - 22/08/2015 I also pushed the generating resource and the node app (that retrieves the syntax from the wiki) to the repo. Download link: https://github.com/JR10/mta-npp/release ... ta-npp.zip Repo: http://github.com/JR10/mta-npp
  9. Most of the times it's better to edit the given code rather than provide an unnecessary changed one. This way, the user can understand his problems better.
  10. https://community.multitheftauto.com/index.php?p=resources
  11. Lua is pretty easy as is. He doesn't need to learn much more complex languages in order to learn Lua. C++ is much much much harder than Lua.
  12. Why should he learn C++ or Python just to learn Lua?! Why would he need to learn anything at all before learning Lua?
  13. Again, not sure what you mean. If this is a script request then I can't help you because we don't handle script requests. Try something yourself first.
  14. I thought this was part of your code. If this is the full code then you need to use it with onPlayerLogin. function hitdbs(old, new) local accName = getAccountName(new) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "DL1" )) then setElementData (source, "CSThit", "DL1") elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "DL2" )) then setElementData (source, "CSThit", "DL2") elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "DL3" )) then setElementData (source, "CSThit", "DL3") else setElementData (source, "CSThit", "None") end end addEventHandler('onPlayerLogin', root, hitdbs)
  15. JR10

    [REQ]Vehicles

    We don't handle script requests. Try something yourself first then come asking for help.
  16. You should use elseif not just if. You have an extra end as well. function hitdbs(player) accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "DL1" )) then setElementData (player, "CSThit", "DL1") elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "DL2" )) then setElementData (player, "CSThit", "DL2") elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "DL3" )) then setElementData (player, "CSThit", "DL3") else setElementData (player, "CSThit", "None") end end
  17. What? Mind explaining better? Some code maybe?
  18. I ran the code myself and there doesn't seem to be an error anywhere.
  19. Is this the full code? I can't spot the syntax error. Try looking at line 3 for any extra symbols.
  20. JR10

    debugscript message

    I don't understand. Are we talking about the width of the progress' rectangle? If so, just calculate the width based on the percentagle. local width = progress * max_width
  21. Well, there's no event for when a player changes teams, but you can trigger one whenever your script uses setPlayerTeam.
  22. Whenever the blip is destroyed (can be the vehicle) the criminalBlip will refer to nil. You use isElement to make sure that the criminalBlip is still there. Using two infinite timers is very bad. Just use events.
  23. JR10

    debugscript message

    I think the function returns false even if the upgrade exists. As long as the nitro level is zero, it returns false. local nitro = getVehicleNitroLevel(veh) or 0 This should omit the error.
  24. JR10

    help me pls

    client-side. The export's type is client-side.
×
×
  • Create New...