All Activity

This stream auto-updates     

  1. Past hour
  2. Dimos7

    [HELP] Player ID & Part of Name

    Simple do that function findPlayer(name) local name = name and name:gsub("#%x%x%x%x%x%x", "" ):lower() or nil if name then for _, player in pairs(getElementsByType("player")) do local name_=getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end function getPlayerID(player) if player then local theID for id, p in pairs(getElementsByType("player")) do if p == player then theID = id end return theID end else return end end function getPlayerFromID(theID) if theID then tonumber(theID) local thePlayer for id, p in pairs(getElementsByType("player")) do if theID == id then thePlayer = p end return thePlayer end else return end end
  3. TheBoyPlayer

    [HELP] Database connect

    function adminOnline (thePlayer, command) local playerid = getElementData( thePlayer, "id" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) outputChatBox("#ff4500[Admins]:", thePlayer, 255, 255, 255, true) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffFounder", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDeveloper", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDirector", thePlayer, 255, 255, 255, true) end end addCommandHandler("admins", adminOnline)
  4. TheBoyPlayer

    [Question]

    function adminOnline (thePlayer, command) local playerid = getElementData( thePlayer, "id" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) outputChatBox("#ff4500[Admins]:", thePlayer, 255, 255, 255, true) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffFounder", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDeveloper", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDirector", thePlayer, 255, 255, 255, true) end end addCommandHandler("admins", adminOnline)
  5. TheBoyPlayer

    Object Preview

    function adminOnline (thePlayer, command) local playerid = getElementData( thePlayer, "id" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) outputChatBox("#ff4500[Admins]:", thePlayer, 255, 255, 255, true) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffFounder", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDeveloper", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDirector", thePlayer, 255, 255, 255, true) end end addCommandHandler("admins", adminOnline)
  6. TheBoyPlayer

    Attatching event to root vs resourceRoot

    function adminOnline (thePlayer, command) local playerid = getElementData( thePlayer, "id" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) outputChatBox("#ff4500[Admins]:", thePlayer, 255, 255, 255, true) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffFounder", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDeveloper", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDirector", thePlayer, 255, 255, 255, true) end end addCommandHandler("admins", adminOnline)
  7. TheBoyPlayer

    get/setElementDimension/Interior PROBLEM

    function adminOnline (thePlayer, command) local playerid = getElementData( thePlayer, "id" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) outputChatBox("#ff4500[Admins]:", thePlayer, 255, 255, 255, true) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffFounder", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDeveloper", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDirector", thePlayer, 255, 255, 255, true) end end addCommandHandler("admins", adminOnline)
  8. TheBoyPlayer

    PAINTJOB REPLACEMENT IN MY SERVER

    function adminOnline (thePlayer, command) local playerid = getElementData( thePlayer, "id" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) outputChatBox("#ff4500[Admins]:", thePlayer, 255, 255, 255, true) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffFounder", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDeveloper", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDirector", thePlayer, 255, 255, 255, true) end end addCommandHandler("admins", adminOnline)
  9. TheBoyPlayer

    [HELP] Vehicle light

    function adminOnline (thePlayer, command) local playerid = getElementData( thePlayer, "id" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) outputChatBox("#ff4500[Admins]:", thePlayer, 255, 255, 255, true) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffFounder", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDeveloper", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDirector", thePlayer, 255, 255, 255, true) end end addCommandHandler("admins", adminOnline)
  10. TheBoyPlayer

    Help - Fortnite

    function adminOnline (thePlayer, command) local playerid = getElementData( thePlayer, "id" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) outputChatBox("#ff4500[Admins]:", thePlayer, 255, 255, 255, true) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffFounder", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDeveloper", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDirector", thePlayer, 255, 255, 255, true) end end addCommandHandler("admins", adminOnline)
  11. TheBoyPlayer

    This is possible?

    function adminOnline (thePlayer, command) local playerid = getElementData( thePlayer, "id" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) outputChatBox("#ff4500[Admins]:", thePlayer, 255, 255, 255, true) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffFounder", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDeveloper", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDirector", thePlayer, 255, 255, 255, true) end end addCommandHandler("admins", adminOnline)
  12. TheBoyPlayer

    setPedWalkingStyle...

    function adminOnline (thePlayer, command) local playerid = getElementData( thePlayer, "id" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) outputChatBox("#ff4500[Admins]:", thePlayer, 255, 255, 255, true) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffFounder", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDeveloper", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDirector", thePlayer, 255, 255, 255, true) end end addCommandHandler("admins", adminOnline)
  13. TheBoyPlayer

    I need scripteur for multigamemode

    function adminOnline (thePlayer, command) local playerid = getElementData( thePlayer, "id" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) outputChatBox("#ff4500[Admins]:", thePlayer, 255, 255, 255, true) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffFounder", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDeveloper", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDirector", thePlayer, 255, 255, 255, true) end end addCommandHandler("admins", adminOnline)
  14. TheBoyPlayer

    [HELP] Player ID & Part of Name

    function adminOnline (thePlayer, command) local playerid = getElementData( thePlayer, "id" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) outputChatBox("#ff4500[Admins]:", thePlayer, 255, 255, 255, true) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffFounder", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDeveloper", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDirector", thePlayer, 255, 255, 255, true) end end addCommandHandler("admins", adminOnline)
  15. TheBoyPlayer

    [HELP] Admins Online

    function adminOnline (thePlayer, command) local playerid = getElementData( thePlayer, "id" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) outputChatBox("#ff4500[Admins]:", thePlayer, 255, 255, 255, true) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffFounder", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDeveloper", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDirector", thePlayer, 255, 255, 255, true) end end addCommandHandler("admins", adminOnline)
  16. LyricalMM

    [HELP] Admins Online

    for example function getAdmins() local players = #getElementsByType("player") local admins = { } local accName = getAccountName ( getPlayerAccount ( value ) ) for key, value in ipairs(players) do if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then table.insert(admins,value) end end return admins end and local players = exports.yourScript:getAdmins() for k, arrayPlayer in ipairs(players) do if --your condition if it's admin-- then --your code end end
  17. xXGhostXx

    [HELP] Admins Online

    function adminOnline (thePlayer, command) local playerid = getElementData( thePlayer, "id" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) outputChatBox("#ff4500[Admins]:", thePlayer, 255, 255, 255, true) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffFounder", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDeveloper", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDirector", thePlayer, 255, 255, 255, true) end end addCommandHandler("admins", adminOnline) It didn't work ! Please give me a write code.
  18. LyricalMM

    [HELP] Admins Online

    The problem is that you put the variable "thePlayer" and that shows only to you if you are an admin, you need to get other player names and if the other players are admins.
  19. Today
  20. كيف مختلف تماماً؟, السكربت اللي عطاك هو اوسكار نفسه
  21. شباب ارجو حل للمشكلة بلعب وزارة الهجولة والتدشير 1.5.6 من اكتر من 4 سنوات انا واخواتى وابناء عمى من كم يوم تم طردنا من السيرفر ولا اعلم كيف وليه ارجو ايجاد حل سريع
  22. mhmed110

    عندى مشكلة الطرد من السيرفر

    Thank you I am new in dealing with the forum and do not know how to go to the Arab section Please send me a link or my face
  23. xXGhostXx

    [HELP] Player ID & Part of Name

    Hello. How to sync my two codes, (e.g. My ID SYSTEM and Part of Name). I like to use both of them: (ID System and Part of Name) in one command (e.g. /Respawn <Part of Name / ID>) Part of name codes function findPlayer( partofname ) local player = getPlayerFromName ( tostring(partofname) ) if player then return player end for _, player in pairs( getElementsByType 'player' ) do if string.find ( string.gsub ( getPlayerName ( player ):lower( ), "#%x%x%x%x%x%x", "" ), partofname:lower( ), 1, true ) then return player end end end ID System codes function getPlayerID(player) if player and isElement(player) and getElementType(player) == "player" and getElementData(player, "id") then return getElementData(player, "id") end return false end -- function getPlayerFromID(id) if id and tonumber(id) and ID[tonumber(id)] then return ID[tonumber(id)] end return false end @iMr.WiFi..!
  24. : ) بــتــؤفيــق يـآ بطـل وشُكـرآً ..# مـُقدمــآً .!!
  25. OK well guys my friend need a helper for MGM server hé need strong and professionnel scripter for multigamemode like better than FFS server Our Web-Site : sl-mta.rf.gd and after we will buy .com domain OK now u can contact me via discord xFrox~#4986 and also he can give him fonder Thanks for reading
  1. Load more activity