Contracts
Contracts in Eleven Police MDT for FiveM: hiring, promotion, demotion, termination and official documents with a drawn signature, plus the Requests inbox.
What it is
Contracts and official documents that are signed in game. A command officer issues the contract; the recipient gets it in their Requests inbox, reads it and draws their signature. On signing, what the contract says is applied. It is controlled by the contratos flag (on by default).
Contract types
| Type | What happens on signing |
|---|---|
| Hiring | Grants the police job at the stated grade (the signer must be an adult) |
| Promotion | Changes to the stated grade |
| Demotion | Changes to a lower grade |
| Termination | Removes the police job |
| Official document | Nothing mechanical: it is archived with both signatures. It has two free fields ("Information", "Valid until") |
For hiring, promotion and demotion, the issuer fills in department, grade, badge, photo and divisions when creating it. The grade is read from the stored contract, never from the signer.
The types and their default text are in config/contratos.lua, in both languages.
Issuing and signing
- In Contracts, the command officer issues one (
contratos.create) for a citizen or an officer. It stays pending, with the issuer's signature. - The recipient sees it in Requests. No permission is needed for this: only being the recipient.
- They open it, check the document and draw their signature in the box. They can Accept and sign or Reject.
- On signing, the action is applied and the contract is archived.
Tip
Someone signing a hiring contract is not police yet, so they cannot open the tablet with the key. That is what the police_tablet item is for: the command officer hands it over and the citizen signs with it. See Inventory items.
Template
With contratos.edit_template you adjust where each element of the document sits. The layout is saved in the database. The default logo is the one in Config.Branding.
Permissions
| Action | Permission | Default |
|---|---|---|
| View contracts | contratos.view | Command |
| Issue | contratos.create | Command |
| Cancel | contratos.cancel | Command |
| Delete from the archive | contratos.delete | Command |
| Edit the template | contratos.edit_template | Command |
Deleting a contract does not undo what was already applied (job, gradeā¦).