[ALPHA] FS Freeroam 0.1.5 [FiveM-Scripts]

FS Freeroam 0.1.5

NOTICE
The resource has been since taken down, by the original author. This includes “FiveM-Scripts” most of the resources except for the ELS-FiveM resource which still remains available through ejb. Apologies for the inconvenience. It’s unfortunate, but it’s whatever. I hope everyone enjoyed it while it lasted just like the rest of us did.

This thread can be locked and disregarded I guess…

6 Likes

Atleast rename it O.o

3 Likes

Hello !
The smoke and the water is bugged because if you don"t have money on you, you can consume the drogs.
Or normaly you can’t. Anyone know why ? Or how to debug it ?

local thisPed
local pedCoords = {}
local storedPeds = {}
local blips = {
  -- Smoke on the water
  {x=-1171.42, y=-1572.72, z=3.6636},
}

local MISSION = {}
MISSION.start = false
MISSION.wanted = false
local playerCoords
local playerPed

showStartText   = false

--blips
local BLIP = {}
Citizen.CreateThread(function()
    while true do
       Wait(0)

       RequestAnimSet("MOVE_M@DRUNK@SLIGHTLYDRUNK")
           while not HasAnimSetLoaded("MOVE_M@DRUNK@SLIGHTLYDRUNK") do
            Citizen.Wait(0)
           end

       playerPed = GetPlayerPed(-1)
       playerCoords = GetEntityCoords(playerPed, 0)
      smoketick()
    end
end)

function smoketick()
    --Show notification, when player is near the weedshop
    if(MISSION.start == false) then
    for _, item in pairs(blips) do
    if(GetDistanceBetweenCoords(playerCoords, item.x, item.y, item.z) < 10) then
            if(showStartText == false) then
                DealText()
            end
            -- Start mission
            if(IsControlPressed(1, 38)) then
              TriggerServerEvent("es_freeroam:pay", tonumber(50))
              Toxicated()
              MISSION.start = true
            end
          else
            showStartText = false
          end --if GetDistanceBetweenCoords ...
        end -- end for
      end--if MISSION.start == false

          if(MISSION.start == true) then
            Citizen.CreateThread(function()
              while true do
                Wait(0)
                playerPed = GetPlayerPed(-1)
                playerCoords = GetEntityCoords(playerPed, 0)
                vehCheck = IsPedInAnyVehicle(GetPlayerPed(-1), true)
                -- Check if the player is inside a vehicle
                if vehCheck and MISSION.start == true  then
                  -- Set the player wanted
                  SetPlayerWantedLevel(GetPlayerPed(playerPed),1,false)
                  SetPlayerWantedLevelNow(GetPlayerPed(playerPed),false)
                end
              end
            end)
            Citizen.Wait(120000)
            reality()
            MISSION.start = false
          end -- end mission.start
        end -- end tick

        function Toxicated()
          TaskStartScenarioInPlace(GetPlayerPed(-1), "WORLD_HUMAN_DRUG_DEALER", 0, 1)
          Citizen.Wait(5000)
          DoScreenFadeOut(1000)
          Citizen.Wait(1000)
          ClearPedTasksImmediately(GetPlayerPed(-1))
          SetTimecycleModifier("spectator5")
          SetPedMotionBlur(GetPlayerPed(-1), true)
          SetPedMovementClipset(GetPlayerPed(-1), "MOVE_M@DRUNK@SLIGHTLYDRUNK", true)
          SetPedIsDrunk(GetPlayerPed(-1), true)
          DoScreenFadeIn(1000)
        end

        function reality()
          Citizen.Wait(50000)
          DoScreenFadeOut(1000)
          Citizen.Wait(1000)
          DoScreenFadeIn(1000)
          ClearTimecycleModifier()
          ResetScenarioTypesEnabled()
          ResetPedMovementClipset(GetPlayerPed(-1), 0)
          SetPedIsDrunk(GetPlayerPed(-1), false)
          SetPedMotionBlur(GetPlayerPed(-1), false)
          -- Stop the mini mission
          Citizen.Trace("Going back to reality\n")
        end

        function DealText()
          DrawMarker(1, -1171.42, -1572.72, 3.6636, 0, 0, 0, 0, 0, 0, 4.0, 4.0, 2.0, 178, 236, 93, 155, 0, 0, 2, 0, 0, 0, 0)
          ShowInfo("Appuie sur ~INPUT_CONTEXT~ pour acheter de la drogue.", 0)
        end

        function DrawMissionText(m_text, showtime)
          ClearPrints()
          SetTextEntry_2("STRING")
          AddTextComponentString(m_text)
          DrawSubtitleTimed(showtime, 1)
        end

        function ShowNotification(text)
          SetNotificationTextEntry("STRING")
          AddTextComponentString(text)
          DrawNotification(true, false)
        end

        function ShowInfo(text, state)
          SetTextComponentFormat("STRING")
          AddTextComponentString(text)DisplayHelpTextFromStringLabel(0, state, 0, -1)
        end

This will be fixed in the next release

Thanks for releasing this, I have a question. How do I enable pvp? It seems to be disabled after installing this.

Change my database credentials.
database help me please?

Open resources/es_freeroam/config.lua and change your database settings to your credentials

I don"t know where post to propose some features for es_admin.
So i post here. Maybe have a command to teleport a player to an another can be great.
And when you are the admins to have a lsit of commands when do you /admincommands

@Feared It is required you have the Essentialmode release by Kanersps to use this both the essentialmode folder and [essentials] folder need to be in the resources folder, those sort of features (commands) are more a self-add, but I’ve noted it for the next release.

@Refuser if you are using Essentialmode, go into resources/essentialmode/server/main.lua and look at line 13 or look for

settings.defaultSettings = {
	['banReason'] = "You are currently banned. Please go to: insertsite.com/bans",
	['pvpEnabled'] = false, -- change to true
	['permissionDenied'] = false,
	['debugInformation'] = false,
	['startingCash'] = 0,
	['enableRankDecorators'] = false
}

Hi guyz, can you tell me how remove all theses useless blips on map please?

Pouvez vous me dire comment enlever toutes les icones inutiles sur la carte svp?

@SeBL4RD You can find the blips under es_freeroam/player/map.lua

That what i done, but they are always here.

local blips = {
   
    -- Police Stations
    {name="Police Station", id=60, x=425.130, y=-979.558, z=30.711},
    {name="Police Station", id=60, x=1859.234, y= 3678.742, z=33.690},
    {name="Police Station", id=60, x=-438.862, y=6020.768, z=31.490},
    {name="Police Station", id=60, x=818.221, y=-1289.883, z=26.300},
    {name="Prison", id=285, x=1679.049, y=2513.711, z=45.565},
    -- Hospitals
    
    -- Vehicle Shop (Simeon)
    {name="Simeon", id=120, x=-33.803, y=-1102.322, z=25.422},
    -- LS Customs
    {name="LS Customs", id=72, x= -362.796, y= -132.400, z= 38.252},
    {name="LS Customs", id=72, x= -1140.19, y= -1985.478, z= 12.729},
    {name="LS Customs", id=72, x= 716.464, y= -1088.869, z= 21.929},
    {name="LS Customs", id=72, x= 1174.81, y= 2649.954, z= 37.371},
    {name="LS Customs", id=72, x= 118.485, y= 6619.560, z= 31.802},
    
  }

Citizen.CreateThread(function()

    for _, item in pairs(blips) do
      item.blip = AddBlipForCoord(item.x, item.y, item.z)
      SetBlipSprite(item.blip, item.id)
      SetBlipAsShortRange(item.blip, true)
      BeginTextCommandSetBlipName("STRING")
      AddTextComponentString(item.name)
      EndTextCommandSetBlipName(item.blip)
    end

  --load unloaded ipl's
  LoadMpDlcMaps()
  EnableMpDlcMaps(true)
  RequestIpl("chop_props")
  RequestIpl("FIBlobby")
  RemoveIpl("FIBlobbyfake")
  RequestIpl("FBI_colPLUG")
  RequestIpl("FBI_repair")
  RequestIpl("v_tunnel_hole")
  RequestIpl("TrevorsMP")
  RequestIpl("TrevorsTrailer")
  RequestIpl("TrevorsTrailerTidy")
  RemoveIpl("farm_burnt")
  RemoveIpl("farm_burnt_lod")
  RemoveIpl("farm_burnt_props")
  RemoveIpl("farmint_cap")
  RemoveIpl("farmint_cap_lod")
  RequestIpl("farm")
  RequestIpl("farmint")
  RequestIpl("farm_lod")
  RequestIpl("farm_props")
  RequestIpl("facelobby")
  RemoveIpl("CS1_02_cf_offmission")
  RequestIpl("CS1_02_cf_onmission1")
  RequestIpl("CS1_02_cf_onmission2")
  RequestIpl("CS1_02_cf_onmission3")
  RequestIpl("CS1_02_cf_onmission4")
  RequestIpl("v_rockclub")
  RemoveIpl("hei_bi_hw1_13_door")
  RequestIpl("bkr_bi_hw1_13_int")
  RequestIpl("ufo")
  RemoveIpl("v_carshowroom")
  RemoveIpl("shutter_open")
  RemoveIpl("shutter_closed")
  RemoveIpl("shr_int")
  RemoveIpl("csr_inMission")
  RequestIpl("v_carshowroom")
  RequestIpl("shr_int")
  RequestIpl("shutter_closed")
  RequestIpl("smboat")
  RequestIpl("cargoship")
  RequestIpl("railing_start")
  RemoveIpl("sp1_10_fake_interior")
  RemoveIpl("sp1_10_fake_interior_lod")
  RequestIpl("sp1_10_real_interior")
  RequestIpl("sp1_10_real_interior_lod")
  RemoveIpl("id2_14_during_door")
  RemoveIpl("id2_14_during1")
  RemoveIpl("id2_14_during2")
  RemoveIpl("id2_14_on_fire")
  RemoveIpl("id2_14_post_no_int")
  RemoveIpl("id2_14_pre_no_int")
  RemoveIpl("id2_14_during_door")
  RequestIpl("id2_14_during1")
  RequestIpl("coronertrash")
  RequestIpl("Coroner_Int_on")
  RemoveIpl("Coroner_Int_off")
  RemoveIpl("bh1_16_refurb")
  RemoveIpl("jewel2fake")
  RemoveIpl("bh1_16_doors_shut")
  RequestIpl("refit_unload")
  RequestIpl("post_hiest_unload")
  RequestIpl("Carwash_with_spinners")
  RequestIpl("ferris_finale_Anim")
  RemoveIpl("ch1_02_closed")
  RequestIpl("ch1_02_open")
  RequestIpl("AP1_04_TriAf01")
  RequestIpl("CS2_06_TriAf02")
  RequestIpl("CS4_04_TriAf03")
  RemoveIpl("scafstartimap")
  RequestIpl("scafendimap")
  RemoveIpl("DT1_05_HC_REMOVE")
  RequestIpl("DT1_05_HC_REQ")
  RequestIpl("DT1_05_REQUEST")
  RequestIpl("FINBANK")
  RemoveIpl("DT1_03_Shutter")
  RemoveIpl("DT1_03_Gr_Closed")
  RequestIpl("ex_sm_13_office_01a")
  RequestIpl("ex_sm_13_office_01b")
  RequestIpl("ex_sm_13_office_02a")
  RequestIpl("ex_sm_13_office_02b")
end)

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		local players = {}

    for i = 0, 31 do
      if NetworkIsPlayerActive(i) then
        table.insert(players, i)
      end
    end

    for k, v in pairs(players) do
      if not GetBlipFromEntity(GetPlayerPed(v)) then
        if GetPlayerPed(v) == GetPlayerPed(-1) then return end
        local blip = AddBlipForEntity(GetPlayerPed(v))
        SetBlipColour(blip, 1)
      end
    end
  end
end)

Fog of blips are always here…

Just completely removed es_freeroam/player/map.lua file.

Little white blips are gone, but all colored blips are still on map…

If you are using a trainer (Lambda Menu), that will be where you get colored blips from. es_freeroam doesn’t have colored blips.

Hi. When i add es_freeroam on server i can’t load on map. All time initializing session and nothing happend.
http://screenshot.sh/m81AkChs72z5I

HI,

go to : ressources/fivem-map-skater/ “open _ressource.lua” and change this

fivem-map-skater --> es_freeroam

What do you mean exactly? What i need to change?
http://screenshot.sh/oB24C89LTgELM

Oh wow, thanks so much for this release!

fivem = true to es_freeroam = true

1 Like

I have the same probleme and i have change the ( fivem = true to es_freeroam = true ) and he doesn’t work any more… another idea ?