Jump to content

[HELP] For 3 scripts


#Paper

Recommended Posts

Posted

I have maked this scripts but don't works, but no errors are showed in consolle:

  
function displayMainPlate() 
  guiCreateStaticImage(0.68, 0, 0.32, 0.08333, 'logo.png', true, nil) 
  NavmanPlate = guiCreateStaticImage(0, 0.751666666666, 0.22125, 0.248333333333, 'radar.png', true, nil) 
  guiMoveToBack( NavmanPlate ) 
end 
  
addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),displayMainPlate) 
  

Another script:

  
local checkTime = 45 -- in seconds 
  
gRootElement = getRootElement() 
gLocalPlayer = getLocalPlayer() 
  
local afkTimer = nil 
local keyAlreadyHit = false 
  
local function checkAFK() 
    afkTimer = nil 
    if (not keyAlreadyHit) then 
        triggerServerEvent("onPlayerAfk", gLocalPlayer) 
    else 
        afkTimer = setTimer(checkAFK, checkTime * 1000, 1) 
    end 
    keyAlreadyHit = false 
end 
  
addEventHandler("onClientRender", 
    gRootElement, 
    function() 
        for k, v in pairs{ "forwards", "backwards", "left", "right" } do 
            if (getControlState(v)) then 
                keyAlreadyHit = true 
            end 
        end 
    end)         
  
addEvent("onClientAfkStartTimer", true) 
addEventHandler("onClientAfkStartTimer", 
    gRootElement, 
    function() 
        if (afkTimer) then 
            killTimer(afkTimer) 
            afkTimer = nil 
        end 
        afkTimer = setTimer(checkAFK, checkTime * 1000, 1) 
        keyAlreadyHit = false 
    end) 
  
addEvent("onClientAfkStopTimer", true) 
addEventHandler("onClientAfkStopTimer", 
    gRootElement, 
    function() 
        if (afkTimer) then 
            killTimer(afkTimer) 
            afkTimer = nil 
        end 
        keyAlreadyHit = false 
    end) 
  
local function keyHit() 
    keyAlreadyHit = true 
end 
  
for k, v in pairs{ "backspace", "tab", "lshift", "rshift", "lctrl", "rctrl", "lalt", "ralt", "pause", "capslock", "enter", "space", "pgup", "pgdn", "end", "home", "arrow_l", "arrow_u", "arrow_r", "arrow_d", "insert", "delete", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "num_0", "num_1", "num_2", "num_3", "num_4", "num_5", "num_6", "num_7", "num_8", "num_9", "num_mul", "num_add", "num_sep", "num_sub", "num_dec", "num_div", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F9", "F10", "F11", "F12", "scroll", ";", "=", ",", "-", ".", "/", "'", "[", "\\", "]" } do 
    bindKey(v, "down", keyHit) 
    bindKey(v, "up", keyHit) 
end 
  

Other script:

  
function hunterAlert(mapInfo, pickupID, pickupType, vehicleModel) 
info = mapInfo.modename 
if info == "Destruction derby" then 
if pickupType == "vehiclechange" then 
if vehicleModel == 425 then 
outputChatBox(" "..getPlayerName(source).." #ff0000has #99ff00a #00ff99hunter! #8899ffYOU #99ff00WILL #8822ffDIE!",getRootElement(),25,125,225) 
         end 
      end 
   end 
end 
addEventHandler("onPlayerPickUpRacePickup",getRootElement(),hunterAlert) 
  

mtaubluascripter.png

My skype: skiper964

I helped you? Help me! ^^

Help me bro! ^^

Posted

Sorry but we don't support for stealed scripts!!

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

These are random parts taken from topic from this forums.

You didn't make any of them..

First one should work if meta.xml is made properly.

Topic locked - this is just mess, and.. stolen, even if you found these parts in public.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...