[RELEASE] EUP Serve and Rescue + Law&Order 7.5 (Server Side) Update 1.2 Now With ESX Permissions!

Any plan on updating this to 8.+ anytime soon? I’ve tried to replace the EUP skins with the ones from 8.+ and seem to have a bit of mis-matched uniforms etc. Not sure if this is because of EUP-UI settings? Would love to see this updated, and great work!

I have a small issue after when i added EUP to my server people are spawning with random clothes and sometimes people spawn as a Default Danny guy??
Maybe any idea’s ??? I’m a little bit clueless…

1 Like

it’s complicated you need to pay 15 dollars to be able to do something cool

i bought the 15$ Patreon and still fails to load

Anyone know why its doing this?

would this affect the regular EUP or does it just add to it?

Works great, but sometimes players have around over 40mb resource warnings…

I can’t tell under what condition it actually does this. Anyone else having issue with this? Any solutions?

The same problem Can somebody help me?

Does anyone else has resource warnings?

Sometimes above 60mb for some players!

How would u go about adding british uniforms once downloaded?

Let’s say I want to change something about the ped within the menu how do I do that? I don’t know what the numbers mean in each section. Any help?

Lol. I love how everyone is saying you have to be a club member in order to use EUP and I’m just sitting here watching my whole group use EUP with no problems. XD You do NOT have to be a club member. Don’t listen to that. Just download it, Install it correctly, and use it. Sincerely, someone who doesn’t pay for things that are free.

No you don’t. Lol

I’m experiencing an issue where players can’t see their own head after switching model with eup, for anyone else looking at the player they do have a head but simply not for the player himself.

Anyone know what’s up?

eup_ui

local outfits = {
		    ['Mandlig Betjent'] = {
        category = 'Politi',
        ped = 's_m_y_cop_01',
        props = {
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
        },
        components = {
            { 31, 0, 0 },
            { 0, 0, 0 },
            { 19, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 1, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
        },
    },
	
	    ['Kvindelig Betjent'] = {
        category = 'Politi',
        ped = 's_f_y_cop_01',
        props = {
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
        },
        components = {
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
        },
    },
		['Motorcykel Betjent'] = {
        category = 'Politi',
        ped = 's_m_y_hwaycop_01',
        props = {
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
        },
        components = {
            { 32, 0, 0 },
            { 0, 0, 0 },
            { 4, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 1, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
        },
    },
		['Betjent 3'] = {
        category = 'Politi',
        ped = 's_m_y_hwaycop_02',
        props = {
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
        },
        components = {
            { 4, 0, 0 },
            { 0, 0, 0 },
            { 38, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 1, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
        },
    },
		['Betjent 4'] = {
        category = 'Politi',
        ped = 's_m_y_sheriff_01',
        props = {
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
        },
        components = {
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
        },
    },
		['Undercover'] = {
        category = 'Politi',
        ped = 's_m_m_ciasec_01',
        props = {
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
        },
        components = {
            { 8, 0, 0 },
            { 0, 0, 0 },
            { 47, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 1, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
        },
    },

		['AKS'] = {
        category = 'Politi',
        ped = 's_m_y_swat_01',
        props = {
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
        },
        components = {
            { 13, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
        },
    },

	
	    ['EMS Normal tøj'] = {
        category = 'EMS',
        ped = 's_m_m_paramedic_01',
        props = {
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
        },
        components = {
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
            { 0, 0, 0 },
        },
    },


}

local function setOutfit(outfit)
    local ped = PlayerPedId()

    RequestModel(outfit.ped)

    while not HasModelLoaded(outfit.ped) do
        Wait(0)
    end

    if GetEntityModel(ped) ~= GetHashKey(outfit.ped) then
        SetPlayerModel(PlayerId(), outfit.ped)
    end

    ped = PlayerPedId()

    for _, comp in ipairs(outfit.components) do
       SetPedComponentVariation(ped, comp[1], comp[2] - 1, comp[3] - 1, 0)
    end

    for _, comp in ipairs(outfit.props) do
        if comp[2] == 0 then
            ClearPedProp(ped, comp[1])
        else
            SetPedPropIndex(ped, comp[1], comp[2] - 1, comp[3] - 1, true)
        end
    end
end

local categoryOutfits = {}

for name, outfit in pairs(outfits) do
    if not categoryOutfits[outfit.category] then
        categoryOutfits[outfit.category] = {}
    end

    categoryOutfits[outfit.category][name] = outfit
end

local menuPool = NativeUI.CreatePool()
local mainMenu = NativeUI.CreateMenu('XenosRP', 'Vælg dit outfit!')

for name, list in pairs(categoryOutfits) do
    local subMenu = menuPool:AddSubMenu(mainMenu, name)

    for id, outfit in pairs(list) do
        outfit.item = NativeUI.CreateItem(id, 'Vælg dette outfit.')
        subMenu:AddItem(outfit.item)
    end

    subMenu.OnItemSelect = function(sender, item, index)
        -- find the outfit
        for _, outfit in pairs(list) do
            if outfit.item == item then
                CreateThread(function()
                    setOutfit(outfit)
                end)
            end
        end
    end
end

menuPool:Add(mainMenu)

menuPool:RefreshIndex()

ESX                           = nil
local PlayerData              = {}



Citizen.CreateThread(function()
	while ESX == nil do
		TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
		Citizen.Wait(0)
	end

	while ESX.GetPlayerData().job == nil do
		Citizen.Wait(10)
	end

	PlayerData = ESX.GetPlayerData()
end)

RegisterNetEvent("esx:setJob")
AddEventHandler("esx:setJob", function(job)
		PlayerData.job = job
end)


RegisterCommand('eup', function()
    if PlayerData.job ~= nil then
        if PlayerData.job.name == 'police' or PlayerData.job.name == 'police1' or PlayerData.job.name == 'fire' or PlayerData.job.name == 'ambulance'then
            mainMenu:Visible(not mainMenu:Visible())
        else
            ESX.ShowNotification('You are not permitted to use this command')
        end
    end
end, false)

CreateThread(function()
    while true do
        Wait(0)

        menuPool:ProcessMenus()
    end
end)

Is this the one with the police and fire/ems skins ?

Anyone had any issues with the stream side of this since the last Fivem server update? Im part of the patron and haven’t had any issues since I got the pack, however since updating the server its completely stopped working? Ive even reverted back to the old update yet it still inst working.

For some reason all the outfits are messed up not showing what u have in the pictures. Any reason why this would be happening?

Not working, UI works fine, clothes, not so much https://i.imgur.com/vqnh7Lw.png

Yep I have the same prob