Dimos7

Members
  • Content Count

    1,555
  • Joined

  • Last visited

Community Reputation

85 Popular

About Dimos7

  • Rank
    Loc
  • Birthday 09/02/1994

Details

  • Location
    Greece

Recent Profile Visitors

3,207 profile views
  1. Any errors or warnings in /debugscipt 3? clanRankNames = { [1] = "Aprediaz", [2] = "Membro", [3] = "Treinador", [4] = "Sub-Comandante", [5] = "Comandante", [6] = "Lider", } exports["scoreboard"]:scoreboardAddColumn("clanRank", root, 80,"clanRank", 5) function startHandler() for _, v in pairs(getElementsByType("player")) do for #clanRankNames do for i =1,6 do if not clanRankNames[i] then clanRankNames[i] = v setElementData(v, "clanRank", i) break end end end end end addEventHandler("onResourceStart", resourceRoot, startHandler) function loginHandler() for #clanRankNames do for i = 1, 6 do if not clanRankNames[i] then clanRankNames[i] = source setElementData(source, "clanRank", i) break end end end end addEventHandler("onPlayerLogin", root, loginHandler)
  2. clanRankNames = { [1] = "Aprediaz", [2] = "Membro", [3] = "Treinador", [4] = "Sub-Comandante", [5] = "Comandante", [6] = "Lider", } exports["scoreboard"]:scoreboardAddColumn("Clan Rank", root, 80,"Clan Rank", 5) function startHandler() for _, v in pairs(getElementsByType("player")) do for i =1,6 do if not clanRankNames[i] then clanRankNames[i] = v setElementData(v, "Clan Rank", i) break end end end end addEventHandler("onResourceStart", resourceRoot, startHandler) function loginHandler() for i = 1, 6 do if not clanRankNames[i] then clanRankNames[i] = source setElementData(source, "Clan Rank", i) break end end end addEventHandler("onPlayerLogin", root, loginHandler)
  3. That is for scoreboard?
  4. Dimos7

    Gang color blips

    function startHandler() for _, player in pairs (getElementsByType("player")) do local playerGang = getElementData(player, "gang") if playerGang then local r, g, b = unpack(getGangColor(playerGang)) setPlayerNametagColor(player, tonumber(r), tonumber(g), tonumber(b)) g_playerData[player] = {vehicles = {}, settings = {}} g_playerData[player].blip = createBlipAttachedTo(player, 0, 2, tonumber(r), tonumber(g), tonumber(b)) addEventHandler("onFreeroamLocalSettingsChange", player, onLocalSettingsChange) if getOption("welcometextonstart") then ouputChatBox("Welcome to Freeroam", player, 0, 255, 0) end end end end addEventHandler("onResourceStart", resourceRoot, startHandler) function joinHandler() local playerGang = getElementData(source, "gang") if playerGang then local r, g, b = unpack(getGangColor(playerGang)) setPlayerNametagColor(source, tonumber(r), tonumber(g), tonumber(b)) g_playerData[source] = {vehicles = {}, settings = {}} g_playerData[source].blip = createBlipAttachedTo(source, 0, 2, tonumber(r), tonumber(g), tonumber(b)) addEventHandler("onFreeroamLocalSettingsChange", source, onLocalSettingsChange) if getOption("welcometextonstart") then outputChatBox("Welcome to Freeroam", source, 0, 255, 0) end end end addEventHandler("onPlayerJoin", root, joinHandler) function getGangColor(gangName) return exports["gang-system"]:getGangData(gangName, "color") end Try this
  5. Dimos7

    Gang color blips

    The turf system has nothing to do with this just make sure that in gang system the getGangData is a table and not a boolen
  6. Dimos7

    checkbox

    You need check two windows selected checkbox and put the message from eatch one
  7. Dimos7

    checkbox

    Well you need to check if checkbox is selected and then put the message
  8. Dimos7

    Gang color blips

    function startHandler() for _, player in pairs (getElementsByType("player")) do local gangName = getElementData(player, "gang") local r, g, b = unpack(getGangColor(gangName)) setPlayerNametagColor(player, tonumber(r), tonumber(g), tonumber(b)) g_playerData[player] = {vehicles = {}, settings = {}} g_playerData[player].blip = createBlipAttachedTo(player, 0, 2, tonumber(r), tonumber(g), tonumber(b)) addEventHandler("onFreeroamLocalSettingsChange", player, onLocalSettingsChange) if getOption("welcometextonstart") then ouputChatBox("Welcome to Freeroam", player, 0, 255, 0) end end end addEventHandler("onResourceStart", resourceRoot, startHandler) function joinHandler() local gangName = getElementData(source, "gang") local r, g, b = unpack(getGangColor(gangName)) setPlayerNametagColor(source, tonumber(r), tonumber(g), tonumber(b)) g_playerData[source] = {vehicles = {}, settings = {}} g_playerData[source].blip = createBlipAttachedTo(source, 0, 2, tonumber(r), tonumber(g), tonumber(b)) addEventHandler("onFreeroamLocalSettingsChange", source, onLocalSettingsChange) if getOption("welcometextonstart") then outputChatBox("Welcome to Freeroam", source, 0, 255, 0) end end addEventHandler("onPlayerJoin", root, joinHandler) function getGangColor(gangName) return exports["gang-system"]:getGangData(gangName, "color") end
  9. dxDrawText guiGetScreenSize event name onClientRender
  10. Dimos7

    Gang color blips

    No i think is that not get the color of the gang function joinHandler() local gangName = getElementData(source , "gang") if gangName ~= nil then local r, g, b = export["gang-system"] :getGangData(gangName, "color") setPlayerNametagColor(source , tonumber(r), tonumber(g), tonumber(b)) g_PlayerData[source] = { vehicles = {}, settings={} } g_PlayerData[source].blip = createBlipAttachedTo(source , 0, 2, tonumber(r), tonumber(g), tonumber(b)) addEventHandler ("onFreeroamLocalSettingChange",source ,onLocalSettingChange) if getOption('welcometextonstart') then outputChatBox('Welcome to Freeroam', source , 0, 255, 0) end end addEventHandler('onPlayerJoin', root, joinHandler)
  11. Dimos7

    Gang color blips

    function joinHandler() local gangName = getElementData(source , "gang") if gangName ~= nil then local r, g, b = getGangColor(gangName) setPlayerNametagColor(source , tonumber(r), tonumber(g), tonumber(b)) g_PlayerData[source] = { vehicles = {}, settings={} } g_PlayerData[source].blip = createBlipAttachedTo(source , 0, 2, tonumber(r), tonumber(g), tonumber(b)) addEventHandler ("onFreeroamLocalSettingChange",source ,onLocalSettingChange) if getOption('welcometextonstart') then outputChatBox('Welcome to Freeroam', source , 0, 255, 0) end end addEventHandler('onPlayerJoin', root, joinHandler) function getGangColor(gangName) return exports[ "gang_system" ]:getGangData ( gangName, "color" ) end
  12. Dimos7

    Gang color blips

    function joinHandler() local gangName = getElementData(source , "gang") if gangName ~= nil then local r, g, b = getGangColor(gangName) setPlayerNametagColor(source , tonumber(r), tonumber(g), tonumber(b)) g_PlayerData[source] = { vehicles = {}, settings={} } g_PlayerData[source].blip = createBlipAttachedTo(source , 0, 2, tonumber(r), tonumber(g), tonumber(b)) addEventHandler("onFreeroamLocalSettingChange",player,onLocalSettingChange) if getOption('welcometextonstart') then outputChatBox('Welcome to Freeroam', source , 0, 255, 0) end end addEventHandler('onPlayerJoin', root, joinHandler) function getGangColor(gangName) return exports[ "gang_system" ]:getGangData ( gangName, "color" ) end
  13. marker = createMarker(137.39999, 1850.4, 16.6, "cylinder", 1.5, 230, 251, 3, 153) function camera(player) if (getElementType(player) == "player") then fadeCamera(player, true, 0.5) setCameraMatrix(player, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end end addEventHandler("onMarkerHit", marker, camera)