Jump to content

Mkl

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

2 Neutral

About Mkl

  • Rank
    Vic
  • Birthday 06/06/1994

Details

  • Gang
    STF
  • Location
    Ten Green Bottles

Recent Profile Visitors

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

  1. Include the variables inside the functiun and not outside (and inside the condition). -- local hour = ... -- will get values when the script starts addEventHandler("onClientKey", root, function(button,press) -- local hour = ... -- will get values everytime a player press on a key if press and (button == getKeyBoundToCommand("screenshot")) then -- local hour = ... -- will get values when the key is the screenshot command outputChatBox("You have taken a screenshot ! mta-screen_"..year.."-"..month.."-"..day.."_"..hour.."-"..minute.."-"..second..".png", 255, 0, 0, true)
  2. Apparently what I said is a big mistake, please do not consider my previous message
  3. It speaks for itself, you can't compile a compiled script. Nothing much can be done about it. x) Check ACL, did you add your account name to admin ACL group ? I suggest you to use admin resource from mta resources pack. Why do you need another one ?
  4. Hello You can use this script client side : addEventHandler("onClientKey", root, function(button,press) if press and (button == getKeyBoundToCommand("screenshot")) then outputChatBox("You have taken a screenshot !") end end)
  5. Here my idea : You could store informations, the login and the hashed passeword in a client side file. See File functions in the wiki. And you could use JSON as a file format : see toJSON / fromJSON functions.
  6. Hello, Here is the way I would have begin (tested in-game). Hope it can help. local screenW, screenH = guiGetScreenSize() local map_w = 1536 -- size of the map image (mine is 1536 x 1536) local game_w = 6000 -- equivalency with the game size (here whole gtasa map = 6000 x 6000) local radar_w = 400 -- size of the radar on screen local rt = dxCreateRenderTarget(map_w , map_w) -- same size of the map image addEventHandler("onClientRender", root, function() local x_game, y_game = getElementPosition(localPlayer) -- game positions of the player local x_map = (map_w * (x_game + 3000))
  7. Tut

    Happy birthday!

×
×
  • Create New...