[Release][Free][ESX] esx_garaging

If you play without steam, in the latest version of the mod in the /server/Main.lua file, replace

function GetPlayerSteamId(xSource)
    local PlayerIdentifier = ""

    for Index, CurrentIdentifier in pairs(GetPlayerIdentifiers(xSource)) do
        if string.sub(CurrentIdentifier, 1, string.len("steam:")) == "steam:" then
            PlayerIdentifier = CurrentIdentifier
        end
    end

    return PlayerIdentifier
end

with

function GetPlayerSteamId(xSource)
    local PlayerIdentifier = ""

    for Index, CurrentIdentifier in pairs(GetPlayerIdentifiers(xSource)) do
        if string.sub(CurrentIdentifier, 1, string.len("license:")) == "license:" then
            PlayerIdentifier = string.gsub(CurrentIdentifier, "license:", "")
        end
    end

    return PlayerIdentifier
end
1 Like

Script is really great. Thanks for the share :wink:

I’m looking for a way to :

  • invite others players to enter the Garage
  • Possibility to Sell the garage to other Players
  • Make the garages Unique, so if one player bought it, nobody can buy after it :wink:

If you guys have some advice, I’ll take them :wink:

Thanks to you.

Thanks :wink: