Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. two ways server side: function test(mytext) -- remove first argument -- and replace all player with source end OR triggerServerEvent ( "ownText", getRootElement(), getLocalPlayer(),mytext)
  2. everybody are saying that editor is not working properly on 1.0.4. at all you fixed it?
  3. dzek (varez)

    Graphics bug

    looks like popular bug recently.. search this forum.. there was like 5 topics about it.. still no solution
  4. https://forum.multitheftauto.com/viewtop ... 91&t=27675
  5. for me its like: give me all your scripts, then i could do anything with them
  6. tried with "debugscript 3" in ingame console?
  7. this wiki page have one bug i think: outputChatBox(tostring(getTimestamp())) function GetTimestamp(year, month, day, hour, minute, second) -- .. see the difference in function name? 1st capital letter? fix it. what is timestamp? its int type number - time in seconds from 01.01.1970 http://en.wikipedia.org/wiki/Timestamp
  8. well, i think server got better performance running only server than client pc running the game.. and i told you, you dont have to increase value every 1 sec. just do something like: -- include this: -- [url=https://wiki.multitheftauto.com/wiki/GetTimestamp]https://wiki.multitheftauto.com/wiki/GetTimestamp[/url] -- and all functions it needs too!! startTime = getTimestamp() -- and when you need to get the value: function getValue() return getTimestamp() - startTime end -- and you have your value i see you have some english difficulties, but i hope you can understand me
  9. https://community.multitheftauto.com/index.html?p ... ils&id=809
  10. what is not working? any errors? you tried debugging?
  11. sorry,i forgot about you.. im preparing it right now
  12. 50p, you dont understand him he want to replace sight ("celownik") of sniper rifle, not the weapon itself. This thing is like radar - dont have ID. Its one of "internal" gta texture.
  13. guiSetVisible or just dont draw a dx object (set another boolean value for it maybe? like showMoneyBar = true, then on render handler do "if")
  14. so whats the problem of making it server side? you dont have to increase value every second. you can also save "start time" and just do math when you need that value
  15. hehe, maybe not stolen, but copied from another topic ;D
  16. addEventHandler("onClientResourceStart",resourceRoot,createGUI) resourceRoot is not defined
  17. and this bug - occurs only in map editor, or while playing on some mta server too?
  18. try: running as admin running in compatibile mode disabling firewall manually entering your IP in configuration try to change port and .. are you sure you have no another server running in the background?
  19. are you sure your admin resource isn't outdated?
  20. why? could you explain what are you trying to do?
  21. isnt it possible to make the timer server side? element data is synchronized if you want to (default its synchronized, but you can disable it on setElementData)
  22. addEventHandler("onClientResourceStop", getResourceRootElement(getThisResource()), function() outputChatBox('triggered') triggerServerEvent('test', getLocalPlayer()) end) okay, ive tested it too.. well, i see the 'triggered' too, but server dont get any event triggered.. i think its just "too late" to trigger event on this.. maybe try to setElementData from time to time, and catching it server side on quit? i see no better way
  23. post your current code
×
×
  • Create New...