[Release][ESX] 10 System

Esx_10System

Police and Ambulance status indicator.

:hammer_and_wrench: Requirements

ESX
Jobs: police, offpolice, ambulance, offambulance (if you do not have the off jobs you will have to add them to your DB for each rank)

:straight_ruler: Setup

  1. Run the 10system.sql file on your DB to create the table. You will have to populate it by hand with identifiers, name and callsign.

  2. Put the mod in your resources folder and ensure it (or start whatever floats your :sailboat:)

That should be it to get up and running. If you get an error or something doesn’t work please give as much information as possible. Feel free to use the github issues.

:desktop_computer: Commands

/10system Launches the 10 System UI.
/10 [code] Replace [code] with a number found in the config file (feel free to add more) or type some text to show that instead.

:open_file_folder: Git

Project Repo: esx_10system
Bugs & Feature Requests: Issues

:safety_vest: Planned Updates

Sorting: Show units in order of job and sub order by rank.
Callsign Command: Give bosses ability to change call sign through commands.

:paintbrush: UI

As you can see the UI at the moment is super simple. I might update it at a later stage. If you are good with UI and do a redesign please do send it to me, if its good I’ll implement it and credit you.

:safety_vest: Updates

1. 10system updated to work with latest es_exteneded and db table changed to have primary key (thanks to @heartbreakhotel for testing and the db stuff)

5 Likes

There was some missing text for the notification for going on and off duty, quickly fixed it and pushed it.

I get this error when importing db

Updated the SQL file in the repo to:

CREATE TABLE IF NOT EXISTS `10system` (
  `identifier` varchar(100) NOT NULL,
  `callsign` varchar(100) NOT NULL,
  `name` varchar(100) NOT NULL
)

That should run fine

4 Likes

Hello, thanks for this extension, but it does not save anything in the database and the RP names are not there either.

Did you read the setup and do this?

do you have a picture of how to do the manual?

Here is an example, with the sql query

image

SELECT `identifier`, `callsign`, `name` FROM `essentialmode`.`10system` WHERE  `identifier`='steam:110000104cbbaff' AND `callsign`='Whisky 1' AND `name`='Max Grimm' LIMIT 1;

The rank can be displayed in idoverhead .

Show Rank for idoverhead

can you help me ?

Can you help me help you?

I don’t understand what you’re asking…

Is it possible to change the Position of the 10 code update in the right corner?
There is our voice indicator

Show Rank for idoverhead

This is mine position at the center of the left side…

Citizen.CreateThread(function()

while true do

    Citizen.Wait(0)

    if showHud then 

        rectY = 0.373 - (0.0125 * (#statuses - 1))

        rectH = 0.04 + (0.025 * (#statuses - 1))

        DrawRect(0.100, rectY, 0.205, rectH, 0, 0, 0, 150)

        for i, status in ipairs(statuses) do

            y = 0.375 - (0.025 * (i-1))

            DrawAdvancedText(0.170, y, 0.005, 0.0028, 0.4, tostring(status.message), 0, 191, 255, 255, 6, 0)

        end

        

    end

end

end)

is it already working with latest esx?
Also, do you think you may include in config the option to show the on duty members only for boss? Or is it already ?

I’m not running latest esx but see no reason for this not too run on it just fine (try it and let me know)
There is no option for the boss to only see it but you could technically do that by just only allowing the boss to use the /10system command

Would be cool if you could integrate this system into esx_policejob, but well done :slightly_smiling_face:

EDIT: I feel like using the police job boss menu to add the identifiers and call signs would be more useful rather than constantly going to the database and adding them manually, especially if you have a lot of players on the server.

I would also use this SQL since you cant edit/delete rows if there is no primary key.

CREATE TABLE IF NOT EXISTS `10system` (
   `identifier` varchar(100) NOT NULL,
   `callsign` varchar(100) NOT NULL,
   `name` varchar(100) NOT NULL,
   
   PRIMARY KEY (identifier)
 )
1 Like

DONT WORK

Great feedback, maybe what problem your having or something more specific. Or find out what the problem is you’re having and fix it👍🏼

i dont see my name in fivem