Jump to content

PewX

Members
  • Posts

    4
  • Joined

  • Last visited

About PewX

  • Birthday 08/03/1996

Details

  • Location
    Germany
  • Occupation
    Electronics technician for devices and systems
  • Interests
    lel

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

PewX's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Ahahaha, ye.. now I know where your problem is. I failed to see your comment "server.lua" lel But at first.. Because it was just a test. I don't care about that. You want to call (export) a clientsided exported function with a serversided script. This won't work lel. You have to use triggerClientEvent instead of exports.
  2. Maybe your image is out of screen. Well its not a mta bug. I've tested that. Maybe you can find your mistake with my tested code (Picture is not included!) Resource "res2": meta.xml <meta> <script src = "c.lua" type = "client" /> <file src = "pew.png" /> <export function="Main" type = "client" /> </meta> c.lua function renderPew() dxDrawImage(500, 500, 200, 200, "pew.png") end --addEventHandler("onClientRender", root, renderPew) function Main(arg) addEventHandler("onClientRender", root, renderPew) end --------------------------------- Resource "res": meta.xml <meta> <script src = "c.lua" type = "client" /> </meta> c.lua addCommandHandler("dude", function() exports["res2"]:Main() outputChatBox('exports["res2"]:Main()') end )
  3. Hi, i want to release this minigame in this forum too I just spend some hours to script this game.. So the script is not perfect and well the code is not fine.. however it works, lel. It is a simple clone of the android (maybe iOS too) game Go Jump: https://play.google.com/store/apps/deta ... es.game002​ Video & Screenshot (well, I like this thumbnail) Yea, there is an highscore list Download As I already said, the code isn't nice.. better said -ugly. Currently only on GitHub: https://github.com/HorrorClown/MTAGoJump​
  4. Hmm, its bad to use a timer in this case. Wait, a timer is ok but not every 50ms and so many global variables.. Maybe you can do it like this: function getMapTime(map) local mapDuration = get(map .. ".duration") * 1000 -- if we get the duration in seconds, multiplicate with 1000 to get ms mapTimer = setTimer(stopMap, mapDuration) -- To prevent errors, make sure that the duration is correct end function stopMap() outputChatBox("Time elapsed lel..") end
×
×
  • Create New...