SERVER EXPORTS

Add Job News

Use this export to add a news post to a specific company page as a "System" message.

local result = exports["17mov_Phone"]:Companies_AddJobNews(title, content, image, company)

Returns:

  • table: { success: boolean, itemId: number }

Argument
Type
Optional
Explanatio

title

string

โŒ

The title of the news post.

content

string | JSONContent

โŒ

The content of the post. Can be a simple string or a JSONContent object.

image

string

โŒ

URL to the image attached to the news.

company

string

โŒ

The identifier of the company posting the news.

JSONContent Example
{
    "type": "doc",
    "content": [
        {
            "type": "paragraph",
            "content": [
                {
                    "type": "text",
                    "marks": [
                        {
                            "type": "bold"
                        }
                    ],
                    "text": "This is Bold text"
                }
            ],
            "attrs": []
        },
        {
            "type": "paragraph",
            "content": [
                {
                    "type": "text",
                    "marks": [
                        {
                            "type": "italic"
                        }
                    ],
                    "text": "This is Italic text"
                }
            ],
            "attrs": []
        },
        {
            "type": "paragraph",
            "content": [
                {
                    "type": "text",
                    "marks": [
                        {
                            "type": "strike"
                        }
                    ],
                    "text": "This is Strikethrough text"
                }
            ],
            "attrs": []
        },
        {
            "type": "paragraph",
            "content": [
                {
                    "type": "text",
                    "text": "This is normal text"
                }
            ],
            "attrs": []
        }
    ]
}
--- Comes from https://tiptap.dev/

OUTPUT:

Set Call Notifications (By Source)

Toggle the state of company calls notifications for a player using their Server ID (Source).

exports["17mov_Phone"]:Companies_SetCompaniesCallStateBySrc(src, state)
Argument
Type
Optional
Explanation

src

number

โŒ

The player's server ID (source).

state

boolean

โŒ

true to enable notifications, false to disable.

Set Call Notifications (By Number)

Toggle the state of company calls notifications for a player using their phone number.

exports["17mov_Phone"]:Companies_SetCompaniesCallStateByNumber(number, state)
Argument
Type
Optional
Explanation

number

number

โŒ

The player's phone number.

state

boolean

โŒ

true to enable notifications, false to disable.

Set Message Notifications (By Source)

Toggle the state of company message notifications for a player using their Server ID (Source).

exports["17mov_Phone"]:Companies_SetCompaniesMessagesStateBySrc(src, state)
Argument
Type
Optional
Explanation

src

number

โŒ

The player's server ID (source).

state

boolean

โŒ

true to enable notifications, false to disable.

Set Message Notifications (By Number)

Toggle the state of company message notifications for a player using their phone number.

exports["17mov_Phone"]:Companies_SetCompaniesMessagesStateByNumber(number, state)
Argument
Type
Optional
Explanation

number

number

โŒ

The player's phone number.

state

boolean

โŒ

true to enable notifications, false to disable.

Last updated