Skip to content

a simple script using ox_lib to allow your players to make announces about their job, with a same command for all jobs.

License

Notifications You must be signed in to change notification settings

ChrisToFLuA/ToF-Announce-Jobs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Announce Job with only 1 command chat for all jobs

a simple script using ox_lib to allow your players to make announces about their job, with a same command for all jobs.

Dependencies

Configuration

You can modify :

Server-side configuration

local jobS = { -- add here the jobsname like in sql (not the label)
{name = 'police'},            
{name = 'ambulance'},
{name = 'mechanic'},
--{name = 'jobname'},
--{name = 'jobname'},
--{name = 'jobname'},
--{name = 'jobname'},
--{name = 'jobname'},
--{name = 'jobname'},
--{name = 'jobname'},
}

Client-side configuration

    --------------------------------------------------------------------------------------------------------------
    -- add other jobs below in local jobC, copy / paste lines
    ----------------------------------------------------------
    ----------------------------------------------------------
    -- nameJ : name of the job in sql
    -- labelJ : Title of the announce
    -- postionJ : 'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left'
    -- durationJ : time in ms the message will be viewed
    -- for the colors fields use link : https://htmlcolorcodes.com/fr/ - and use HEX to copy / paste on the fields
    -- iconJ : use link https://fontawesome.com/search?o=r&f=sharp
    --------------------------------------------------------------------------------------------------------------
	local jobC = {
        {nameJ = 'police', labelJ = 'LSPD', positionJ = 'top-right', durationJ = 5000, bgcolor = '#4B26D3', txtcolor = '#FFFFFF', iconJ = 'circle-info', iconcolorJ = '#FFFFFF'},
        {nameJ = 'ambulance', labelJ = 'EMS', positionJ = 'top-right', durationJ = 5000, bgcolor = '#0193F8', txtcolor = '#FFFFFF', iconJ = 'circle-info', iconcolorJ = '#FFFFFF'},
        {nameJ = 'mechanic', labelJ = 'LS CUSTOM', positionJ = 'top-right', durationJ = 5000, bgcolor = '#FF8300', txtcolor = '#FFFFFF', iconJ = 'circle-info', iconcolorJ = '#FFFFFF'},
        --{nameJ = 'mechanic', labelJ = 'LS CUSTOM', positionJ = 'top-right', durationJ = 5000, bgcolor = '#FF8300', txtcolor = '#FFFFFF', iconJ = 'circle-info', iconcolorJ = '#FFFFFF'},
        --{nameJ = 'mechanic', labelJ = 'LS CUSTOM', positionJ = 'top-right', durationJ = 5000, bgcolor = '#FF8300', txtcolor = '#FFFFFF', iconJ = 'circle-info', iconcolorJ = '#FFFFFF'},
        --{nameJ = 'mechanic', labelJ = 'LS CUSTOM', positionJ = 'top-right', durationJ = 5000, bgcolor = '#FF8300', txtcolor = '#FFFFFF', iconJ = 'circle-info', iconcolorJ = '#FFFFFF'},
    }

About

a simple script using ox_lib to allow your players to make announces about their job, with a same command for all jobs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages