Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. oh, btw function explosions1 () -- few explosions setTimer ( explosions1, 3000, 3 ) end funny infinite recursion that will crash mta within ... 1 minute maybe? and blip .. new one over another every 3 sec (cant see them, but..)
  2. https://community.multitheftauto.com/?p=resources ... ils&id=841
  3. loler, you are wrong. "end" ends a function, if, while, for, etc. "end" is not used to end the script! so it's wrong! why ppl who dont have a slightest idea about lua are trying here to "help" (talking bullsh*t)?
  4. Well, i think he won't script this, if he couldnt get that logic by himself
  5. download "interiors" resource from community.multitheftauto.com - open xml with locations - there are ammunation coords
  6. afair one of 1.0.4 versions (while it was in beta stage) had such settings in mta menu ?
  7. lol, it can.. maybe you should (re)read wiki? searching is really faster than waiting for answer
  8. i cant wait for new portal btw.. money on paypal is waiting for release!
  9. wow, sorry, i missed it o_O
  10. hmmm https://community.multitheftauto.com/?p=resources ... ils&id=837
  11. your weapon shop is using client-side money taking. ITS WRONG. Use server-side example: -- instead of using something like (client side): takePlayerMoney(playerElement, price) -- use: (client side) triggerServerEvent('takeMoneyFromMe', playerElement, price) -- (server side part) addEvent('takeMoneyFromMe', getRootElement(), function(price) takePlayerMoney(source, price) end) -- you should add server side money checking too, to prevent money hacking and/or getting NEGATIVE money after buying
  12. test it to see.. and when posting code snippets - use [lua] your code goes here [/lua] tags
  13. if you dont want to learn - gtfo ;/ omg..
  14. use this: https://forum.multitheftauto.com/viewtop ... 91&t=24834 read this: https://wiki.multitheftauto.com/wiki/Scripting_Introduction
  15. on first spawn your wwacc.timesSpawned = nil you want to add 1 to nil, probably it result with false. then you are adding 1 to false, and it keeps beeing false.
  16. when i realized that im busy with real life, i just quit mta.
  17. 1.0.4 is in beta stage. it can work, but dont have to. "use at OWN RISK" etc etc. switch back to 1.0.3 now
  18. dzek (varez)

    car mod

    use imgtool to install car mods, dont change handling.cfg auto-car installers often are modyfing handling too, so dont use them.. or just overwrite your data files every time you install a car mod with installer
  19. this is english forum, and you should use english language then.
  20. maybe admin group in your acl doesnt have right to "debug script" you can post your acl.xml here, we can check it for you
  21. every command can have more than one parameter.. each "words" you are separating by space ("hello" "man") are arguments (it's all on wiki!), so you will have to do something like (it's on wiki too!): function handlerFunction(playerSource, commandName, ...) if playerSource then local parametersTable = {...} local stringWithAllParameters = table.concat(parametersTable, " ") outputChatBox("Parameters passed: "..stringWithAllParameters, playerSource) end end addCommandHandler("my_command", handlerFunction) conclusion: read more wiki
  22. WTF IS THIS CODE? i think you should stop trying to code if, after a month or more, you are doing code like that - it is just not for you.. don't use setPedSkin, use setElementModel instead and DEBUG
  23. https://wiki.multitheftauto.com/wiki/SetElementModel
  24. line 27: if getElementType(hitPlayer)=="player" and hitPlayer==getLocalPlayer() then
×
×
  • Create New...