TheMOG

Members
  • Content count

    373
  • Joined

  • Last visited

Community Reputation

29 Good

2 Followers

About TheMOG

  • Rank
    Street Cat
  • Birthday 14/05/98

Details

  • Occupation
    Try yourself, ask for help, but dont leak!

Recent Profile Visitors

1,144 profile views
  1. Scoreboard rank

    test. call(getResourceFromName("global"),"scoreboardAddColumn","VIP",1,75) function updatePlayerVIP() for _ , player in ipairs(getElementsByType("player")) do if isPlayerInACL(player, "PLATINUM VIP") then setElementData(player, "VIP", "Platinum VIP") end if isPlayerInACL(player, "RICH VIP") then setElementData(player, "VIP", "Rich VIP") end if isPlayerInACL(player, "VIP") then setElementData(player, "VIP", "Simple VIP") end if isPlayerInACL(player, "Everyone") then setElementData(player, "VIP" , "None") end end outputChatBox("Checked") end setTimer(updatePlayerVIP,50,0) function isPlayerInACL(player, acl) local accountName = getAccountName( getPlayerAccount(player) ) if accountName ~= "guest" and type( aclGetGroup(acl) ) == "userdata" then return isObjectInACLGroup( "user."..accountName, aclGetGroup(acl) ) end return false end
  2. setPedHeadless without blood

    'sphere'
  3. setPedHeadless without blood

    i think shader
  4. can't get player from command.

    function betOnPlayer(source, cmd, amount, target) if amount then iprint("Amount") if target then local targetPlayer = getPlayerFromPartialName(target) outputChatBox("The player name is "..getPlayerName(targetPlayer), source) iprint("Target found!") --- Your code here. else iprint("No target player") end else outputChatBox("/"..cmd.." [Amount] [Target]", source) end end
  5. Variables and functions visibility

    players can see only "client" side script, but you can check it. go to MTA\mods\deathmatch\resources, pick any resources, and you can see it. I think you need to compile the "shared" file too.
  6. Scoreboard rank

    call(getResourceFromName("global"),"scoreboardAddColumn","VIP",1,75) function setRank() for _,player in ipairs(getElementsByType("player")) do local account = getPlayerAccount(player) if isGuestAccount(account) then setElementData(player,"VIP","None") end if isPlayerInACL(player, "PLATINUM VIP") then setElementData(player,"VIP","Platinum VIP") end if isPlayerInACL(player, "RICH VIP") then setElementData(player, "VIP","Rich VIP") end if isPlayerInACL(player, "VIP") then setElementData(player, "VIP","Simple VIP") end if isPlayerInACL(player, "Everyone") then setElementData(player, "VIP","None") end end end setTimer(setRank,500,0) function isPlayerInACL(player, acl) local accountName = getAccountName( getPlayerAccount(player) ) if accountName ~= "guest" and type( aclGetGroup(acl) ) == "userdata" then return isObjectInACLGroup( "user."..accountName, aclGetGroup(acl) ) end return false end Check /debugscript 3 pls
  7. [HELP] Having trouble with "else/if"

    What are you trying to do? local vehHealth = getElementHealth(theVehicle) if vehHealth < 1000 then ---- code here else outputChatBox("Your vehicle is not damaged") end
  8. guiCreateMemo fix

    then use this local sx,sy = guiGetScreenSize() guiCreateMemo(sx/2 - 120, sy-100, 300, 80,"YourText",false)
  9. minigun disable

    client side...
  10. minigun disable

    addCommandHandler("minigun", function () if isTimer(commandTimer) then return outputChatBox("You have to wait "..math.ceil(getTimerDetails(commandTimer)/1000).." more second to use the command again.",255,255,255,true) end if getElementData(localPlayer,"Anti-minigun") == true then commandTimer = setTimer(function() end, 1000*5, 1) setElementData(localPlayer, "Anti-minigun", false) outputChatBox("Anti-minigun Disabled") else commandTimer = setTimer(function() end, 1000*5, 1) setElementData(localPlayer, "Anti-minigun", true) outputChatBox("Anti-minigun Enabled") end end)
  11. minigun disable

    That is what you wanted.
  12. guiCreateMemo fix

    local sx,sy = guiGetScreenSize() guiCreateMemo(sx/2 - 120, sy-100, 300, 80,"YourText",false) Or use this https://community.multitheftauto.com/index.php?p=resources&s=details&id=141
  13. minigun disable

    addCommandHandler("minigun", function () enabled = not enabled if enabled then setElementData(localPlayer, "Anti-minigun", false) outputChatBox("Anti-minigun Disabled") else setElementData(localPlayer, "Anti-minigun", true) outputChatBox("Anti-minigun Enabled") end end) addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), function ( attacker, weapon, bodypart ) if ( weapon == 38 ) then if (getElementData(source, "Anti-minigun")) then cancelEvent() end end end) You should add a timer for using the command because off abuse.
  14. [HELP] Having trouble with "else/if"

    local repairMarker = createMarker(2063.5, -1831.1999511719, 13, "cylinder", 2, 255, 0 ,0 ,150) local repairSecond = 5 local fixTimer = {} addEventHandler("onMarkerHit", root, function (player) if (source == repairMarker and getElementType(player) == "player") then if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if getElementHealth(vehicle) < 1000 then if getPlayerMoney(player) < 200 then return outputChatBox("You dont have enough money!", player) end setElementFrozen(vehicle, true) fixTimer[player] = setTimer(function() fixVehicle(player) outputChatBox("Your vehicle is fixed", player) setElementFrozen(vehicle, false) end,1000*repairSecond,1) else outputChatBox("Your vehicle not damaged.", player) end end end end)
  15. onClientPlayerWasted

    addEventHandler ( "onClientPlayerWasted", getLocalPlayer(), function (ammo, attacker, weapon, bodypart) text = getPlayerName(attacker).." killed "..getPlayerName(localPlayer).." "("..bodypart..")" outputPubgKillog(text) end) I can't get the killer name.. Whats the problem?