Jump to content

WASSIm.

Members
  • Posts

    1,412
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by WASSIm.

  1. WASSIm.

    Screen size

    use this to make window center CenterWindow
  2. u can edit and use this https://community.multitheftauto.com/in ... ls&id=2840
  3. function Dgun(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if weapon == 24 and hitElement and dgunStatus then if getElementType(hitElement) == "vehicle" then destroyElement(hitElement) end end end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), Dgun ) addCommandHandler("dgun", function() dgunStatus = not dgunStatus outputChatBox("Server: D-gun "..(dgunStatus and "On" or "Off").."!", 0, 255, 0, true) end)
  4. u can use this to make your window center CenterWindow
  5. WASSIm.

    fetchRemote

    thank u its working but i change somethink EDIT debug: Bad 'file' pointer @ 'fileWrite'(1) addEventHandler("onResourceStart", getRootElement(), function (resource) local resourceName = getResourceName(resource) if ( string.find(resourceName, "ZA-") ) then local file = xmlLoadFile(":"..resourceName.."/meta.xml") for i, node in ipairs (xmlNodeGetChildren(file)) do if (xmlNodeGetName(node) == "script") then local src = xmlNodeGetAttribute(node, "src") local theScript = fileOpen(":"..resourceName.."/"..src, true) if (theScript) then local text = fileRead(theScript, 500000000) local theScriptC = fileOpen(":"..resourceName.."/"..src.."c", true) or fileCreate(":"..resourceName.."/"..src.."c") if (theScriptC) then if (fetchRemote("https://luac.multitheftauto.com/?compile=1&debug=0&blockdecompile=1&encrypt=1", function(textC) outputChatBox(textC) fileWrite(theScriptC, textC) end, text, true)) then outputDebugString(""..resourceName.."/"..src..": Successfully compiled") else outputDebugString(""..resourceName.."/"..src..": Failed to compiled", 3) end fileClose(theScriptC) fileClose(theScript) end end end end end end )
  6. WASSIm.

    fetchRemote

    how make it working ?
  7. WASSIm.

    fetchRemote

    3: Bad argument @ 'fetchRemote' [Expected string at argument 3]
  8. WASSIm.

    fetchRemote

    i remove fileRead and working but its write to new file ( ERROR Could not compile file )
  9. WASSIm.

    fetchRemote

    hi guys. who can tell me more info about fetchRemote i want make function compile script ! local FROM = "example.lua" local TO = "compiled.lua" fetchRemote( "https://luac.multitheftauto.com/?compile=1&debug=0&blockdecompile=0&encrypt=0", function(data) fileSave(TO,data) end, fileLoad(FROM), true )
  10. WASSIm.

    ACL

    name="logRes"> name="resource.cys-login">> > name="logRes"> name="function.addAccount" access="true">> name="function.login" access="true">> >
  11. i am already have script zombie bot but i ask how make its move random place
  12. WASSIm.

    bans

    https://community.multitheftauto.com/in ... ls&id=1670
  13. HI GUYS. i working for resource zombie bot ( zombie with slothbot ) but if player zombie will zombie spawned near player and don't move. i want make zombie move like Zday resource
  14. WASSIm.

    Slothbot

    use getPlayerFromName
  15. WASSIm.

    Slothbot

    and what about ( local modesubject = getLocalPlayer() ) ?
  16. WASSIm.

    Slothbot

    slothbot server side
×
×
  • Create New...