Price
UnknownA script by earth_dev
Price
UnknownMAFIA SYSTEM
ESX/QBCore
Optimized
Supports all versions of extensions
Everything works through the game, the config is also transferred in the game so that it works, you don’t have to open a script to create/delete a mob, change the coordinates of the mob, edit stash, you can adjust commands, language, add money/points, adjust vip status, delete/add outfits, and they are also very accessible for the players themselves with lots of fun things!
Dependencies for this resource are:
Tebex - [ESX] Mafia Ingame Creator V2.0
Tebex - [QBCORE] Mafia Ingame Creator V2.0
Config:
Earth = {}
Earth.Permission = "licences" -- licences or group
Earth.Notify = "esx" -- esx, chat, mythic, okokNotify, ox_notify
Earth.MafiaPointsList = "F4" -- add key to open mafia points list(from from highest to lowest)
Earth.CheaterMessage = "nice try :)" -- message for cheater or bag abuse
Earth.Inventory = "ox_inventory" -- ox_inventory or qs-inventory or qb-inventory (if you want orther inventory open ticket)
Earth.Licences = { -- if you use licences on Earth.Permission
"98f19dc6c18eebb304c942298b4a7706829cde24", -- Jure
}
Earth.Groups = { -- if you use group on Earth.Permission
["admin"] = true,
["superadmin"] = true,
["headadmin"] = true,
["owner"] = true,
-- here add your group
}
Earth.VehState = { --Available Vehicles
FirstVeh = 40,
SecoundVeh = 60,
ThreeVeh = 30,
}
Earth.BlipMafia = { -- blip for mafias
BlipSprite = 565,
BlipScale = 0.8,
BlipShortRange = true,
BlipName = "Mafia"
}
Earth.CarImage = { -- for mafia garage system
sultan = "https://media.discordapp.net/attachments/1018856881877422102/1327420870389661757/sultan-removebg-preview.png?ex=67c04e45&is=67befcc5&hm=34217465db13408bde3cd58520317467cfd30533983f3ddcb1d6dcb4b58c0eb7&format=webp&quality=lossless&width=600&height=336&",
adder = "https://media.discordapp.net/attachments/1018856881877422102/1327420870721015949/adder-removebg-preview.png?ex=67c04e45&is=67befcc5&hm=0d31d663cd0f0f78e7d75d254438fad94ea7fa5513ba76062c0a26ce093946a3&format=webp&quality=lossless&width=599&height=337&",
blista = "https://media.discordapp.net/attachments/1018856881877422102/1327420871031390229/blista-removebg-preview.png?ex=67c04e45&is=67befcc5&hm=22799cfe52b4b054ca7e0928a0df286271eadb892711117bb47ad63a1de3e1b1&format=webp&quality=lossless&width=611&height=331&",
intemo = "https://media.discordapp.net/attachments/1018856881877422102/1344374961783050271/image-removebg-preview.png?ex=67c0ae40&is=67bf5cc0&hm=168b8f0755f067be719fd425fe58576854cfdfe297d6244c5db57ab306d89bda&=&format=webp&quality=lossless&width=546&height=370",
audis8 = "https://media.discordapp.net/attachments/1018856881877422102/1344374961451569213/image2-removebg-preview.png?ex=67c0ae40&is=67bf5cc0&hm=d97f590d6a760c525e8d1d98e17cc259de00e2fe199349df82b8af485dbcc895&=&format=webp&quality=lossless&width=572&height=354",
mobra = "https://media.discordapp.net/attachments/1018856881877422102/1344374962160406538/image3-removebg-preview.png?ex=67c0ae40&is=67bf5cc0&hm=8e25d614aa0cf3c9a1e2dbf3422e3df297c5c16cf50974dde362571a5147a135&=&format=webp&quality=lossless&width=589&height=343",
}
Earth.Props = {
BossMenu = {
{label = "xm_prop_base_staff_desk_02", value = "xm_prop_base_staff_desk_02"},
{label = "v_ind_dc_desk02", value = "v_ind_dc_desk02"},
},
Stash = {
{label = "prop_box_wood05a", value = "prop_box_wood05a"},
{label = "xm_prop_rsply_crate04b", value = "xm_prop_rsply_crate04b"},
},
Outfits = {
{label = "bkr_prop_biker_garage_locker_01", value = "bkr_prop_biker_garage_locker_01"},
{label = "prop_dress_disp_03", value = "prop_dress_disp_03"},
},
Vehicle = {
{label = "prop_parkingpay", value = "prop_parkingpay"},
{label = "imp_prop_tool_draw_01b", value = "imp_prop_tool_draw_01b"},
}
}
Earth.BuyVehicle = {
{label = "Autarch - 50 points", value = "autarch", points = 50},
{label = "Avarus - 70 points", value = "avarus", points = 70},
{label = "Banshee 900R - 100 points", value = "banshee2", points = 100}
}
Earth.BuyWeapon = {
{label = "Glock - 50 points", value = "weapon_pistol", points = 50},
{label = "AK-47 - 100 points", value = "weapon_assaultrifle", points = 100},
{label = "Sniper Rifle - 150 points", value = "weapon_sniperrifle", points = 150}
}
--[[CUSTOMIZE ACCORDING TO YOUR SERVER]]
AddEventHandler("earth:searchPlayer", function()
local closestPlayer = ESX.Game.GetClosestPlayer()
if PlayerData.job and (PlayerData.job.name == 'unemployed' or
PlayerData.job.name == 'ambulance' or
PlayerData.job.name == 'police' or
PlayerData.job.name == 'mechanic' or
PlayerData.job.name == 'taxi') then
return
end
if Earth.Inventory == "ox_inventory" then
exports.ox_inventory:openNearbyInventory()
elseif Earth.Inventory == "qs-inventory" then
if closestPlayer and closestPlayer ~= -1 then
TriggerServerEvent("qs-inventory:server:OpenInventory", "otherplayer", GetPlayerServerId(closestPlayer))
else
notify("Nema igrača u blizini!")
end
end
end)
function MenuClothes()
TriggerEvent('esx_skin:openRestrictedMenu', function(data, menu)
menu.close()
TriggerEvent('sejvanjeodjece')
end, {
'tshirt_1', 'tshirt_2',
'torso_1', 'torso_2',
'decals_1', 'decals_2',
'arms',
'pants_1', 'pants_2',
'shoes_1', 'shoes_2',
'bags_1', 'bags_2',
'chain_1', 'chain_2',
'helmet_1', 'helmet_2',
'glasses_1', 'glasses_2'
})
--[[
TriggerEvent('illenium-appearance:client:openEarthMenu', function(id)
TriggerEvent('sejvanjeodjece')
end)]]
end
function adminOutfit(poslic, outfitName)
TriggerEvent('esx_skin:openRestrictedMenu', function(data, menu)
menu.close()
TriggerEvent('skinchanger:getSkin', function(skin)
ESX.TriggerServerCallback('earth_outfiti:sejvajodjecu', function(success)
if success then
ESX.ShowNotification("Outfit saved!")
else
ESX.ShowNotification("Failed to save outfit.")
end
end, outfitName, skin, poslic)
end)
end, {
'tshirt_1', 'tshirt_2',
'torso_1', 'torso_2',
'decals_1', 'decals_2',
'arms',
'pants_1', 'pants_2',
'shoes_1', 'shoes_2',
'bags_1', 'bags_2',
'chain_1', 'chain_2',
'helmet_1', 'helmet_2',
'glasses_1', 'glasses_2'
})
--[[
TriggerEvent('illenium-appearance:client:openEarthMenu', function(id)
TriggerEvent('earth:outfitAdminSejvaj', poslic)
end)]]
end
function takeOutfit(outfitIme)
local playerPed = PlayerPedId()
TriggerEvent('skinchanger:getSkin', function(skin)
ESX.TriggerServerCallback('earth_outfiti:getajoutfite', function(earth_outfitie)
if earth_outfitie and #earth_outfitie > 0 then
local outfitara
for _, outfit in pairs(earth_outfitie) do
if outfit.ime == outfitIme then
outfitara = outfit.outfit
break
end
end
if outfitara then
TriggerEvent('skinchanger:loadClothes', skin, outfitara)
-- TriggerEvent("illenium-appearance:client:changeOutfit", outfitara)
-- TriggerEvent("illenium-appearance:client:loadJobOutfit", outfitara)
end
end
end)
end)
end
function notify(msg) -- add your notify
if Earth.Notify == "esx" then
ESX.ShowNotification(msg)
elseif Earth.Notify == "chat" then
TriggerEvent('chatMessage', '^3[earthMafia] >>^0 ' .. msg)
elseif Earth.Notify == "mythic" then
exports['mythic_notify']:DoHudText('info', msg)
elseif Earth.Notify == "okokNotify" then
exports['okokNotify']:Alert('earthMafia', msg, 2000, 'info', 'false')
elseif Earth.Notify == "ox_notify" then
lib.notify({
title = 'Earth Mafia V2',
description = msg,
type = 'inform'
})
end
end
Logs:
Players Functions
Available languages
Danish
German
English
Spanish
French
Croatian
Hungarian
Italian
Polish
Russian
Slovak
Turkish
Slovenian
Other scripts :
[ESX] Trucker job
[ESX] Coke System
[ESX] Job Outfits
[ESX] Admin Menu v1.0
[ESX] Camping
[ESX] Ownable Fruit Stands
[ESX] Bunkers
[ESX] Admin Menu v2.0
[QBCORE] Camping
[QBCORE] Admin Menu
[QBCORE] Admin Menu v2.0
| Code is accessible | Yes/No |
| Subscription-based | No |
| Requirements | Yes |
| Support | Yes |
See what others are saying about this script.
Share your experience and help others.