Skip to content

Commit 8cde59c

Browse files
Scraper: parse event parameters & canceling
All events parsed
1 parent c461ee7 commit 8cde59c

File tree

222 files changed

+3110
-1001
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+3110
-1001
lines changed

events/Account/onAccountCreate.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
# Scraped from: https://wiki.multitheftauto.com/wiki/onAccountCreate
1+
# Scraped from: https://wiki.multitheftauto.com/wiki/OnAccountCreate
22
name: onAccountCreate
33
type: server
4-
description: TODO
5-
incomplete: true
64
source_element:
75
type: element
8-
description: TODO
6+
description: The source of this event is the root element.
7+
description: This event is triggered every time an [account](/wiki/Account "Account")
8+
is created
9+
parameters:
10+
- name: theAccount
11+
type: account
12+
description: An account element that was created
13+
canceling: This event cannot be canceled.
Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1-
# Scraped from: https://wiki.multitheftauto.com/wiki/onAccountDataChange
1+
# Scraped from: https://wiki.multitheftauto.com/wiki/OnAccountDataChange
22
name: onAccountDataChange
33
type: server
4-
description: TODO
5-
incomplete: true
64
source_element:
75
type: element
8-
description: TODO
6+
description: The source of this event is the root element.
7+
description: This event is triggered when an accounts data changes through [setAccountData](/wiki/SetAccountData
8+
"SetAccountData").
9+
parameters:
10+
- name: theAccount
11+
type: account
12+
description: the account that had data changed.
13+
- name: theKey
14+
type: string
15+
description: the string key that is being changed.
16+
- name: theValue
17+
type: string
18+
description: the value it is changing to.

events/Account/onAccountRemove.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
# Scraped from: https://wiki.multitheftauto.com/wiki/onAccountRemove
1+
# Scraped from: https://wiki.multitheftauto.com/wiki/OnAccountRemove
22
name: onAccountRemove
33
type: server
4-
description: TODO
5-
incomplete: true
64
source_element:
75
type: element
8-
description: TODO
6+
description: The source of this event is the root element.
7+
description: This event is triggered every time an [account](/wiki/Account "Account")
8+
is removed
9+
parameters:
10+
- name: theAccount
11+
type: account
12+
description: An account element that was removed
13+
canceling: This event cannot be canceled.
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
# Scraped from: https://wiki.multitheftauto.com/wiki/onClientBrowserCreated
1+
# Scraped from: https://wiki.multitheftauto.com/wiki/OnClientBrowserCreated
22
name: onClientBrowserCreated
33
type: client
4-
description: TODO
5-
incomplete: true
64
source_element:
75
type: element
8-
description: TODO
6+
description: The browser element.
7+
description: This event is triggered when the CEF browser instance has been created.
8+
If you want to load a specific website right after creating the browser (using [createBrowser](/wiki/CreateBrowser
9+
"CreateBrowser") or [guiCreateBrowser](/wiki/GuiCreateBrowser "GuiCreateBrowser")),
10+
this event will be the convenient place.
11+
parameters: []
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
# Scraped from: https://wiki.multitheftauto.com/wiki/onClientBrowserCursorChange
1+
# Scraped from: https://wiki.multitheftauto.com/wiki/OnClientBrowserCursorChange
22
name: onClientBrowserCursorChange
33
type: client
4-
description: TODO
5-
incomplete: true
64
source_element:
75
type: element
8-
description: TODO
6+
description: The source of this event is the browser element the cursor change occured
7+
in.
8+
description: This event is triggered when the cursor changes within a browser window.
9+
parameters:
10+
- name: cursorId
11+
type: int
12+
description: The new cursor ID. See Cursor IDs.
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
# Scraped from: https://wiki.multitheftauto.com/wiki/onClientBrowserDocumentReady
1+
# Scraped from: https://wiki.multitheftauto.com/wiki/OnClientBrowserDocumentReady
22
name: onClientBrowserDocumentReady
33
type: client
4-
description: TODO
5-
incomplete: true
64
source_element:
75
type: element
8-
description: TODO
6+
description: The browser element.
7+
description: This event is executed after the web page has been loaded successfully.
8+
parameters:
9+
- name: url
10+
type: string
11+
description: the url of the web page loaded.
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
# Scraped from: https://wiki.multitheftauto.com/wiki/onClientBrowserInputFocusChanged
1+
# Scraped from: https://wiki.multitheftauto.com/wiki/OnClientBrowserInputFocusChanged
22
name: onClientBrowserInputFocusChanged
33
type: client
4-
description: TODO
5-
incomplete: true
64
source_element:
75
type: element
8-
description: TODO
6+
description: The browser element.
7+
description: This event is triggered when the input focus inside a browser has changed.
8+
parameters:
9+
- name: gainedFocus
10+
type: bool
11+
description: true if an input field has been focused, false if it has lost focus.
Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
# Scraped from: https://wiki.multitheftauto.com/wiki/onClientBrowserLoadingFailed
1+
# Scraped from: https://wiki.multitheftauto.com/wiki/OnClientBrowserLoadingFailed
22
name: onClientBrowserLoadingFailed
33
type: client
4-
description: TODO
5-
incomplete: true
64
source_element:
75
type: element
8-
description: TODO
6+
description: The browser element.
7+
description: The event is triggered when the browser can not load the page.
8+
parameters:
9+
- name: url
10+
type: string
11+
description: the requested URL.
12+
- name: errorCode
13+
type: int
14+
description: see error codes below.
15+
- name: errorDescription
16+
type: string
17+
description: a short description.
Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
# Scraped from: https://wiki.multitheftauto.com/wiki/onClientBrowserLoadingStart
1+
# Scraped from: https://wiki.multitheftauto.com/wiki/OnClientBrowserLoadingStart
22
name: onClientBrowserLoadingStart
33
type: client
4-
description: TODO
5-
incomplete: true
64
source_element:
75
type: element
8-
description: TODO
6+
description: The webbrowser element.
7+
description: The event is triggered when a [webbrowser](/wiki/Browser "Browser") starts
8+
loading a page.
9+
parameters:
10+
- name: URL
11+
type: string
12+
description: string containing the URL that will be loaded.
13+
- name: isMainFrame
14+
type: boolean
15+
description: 'a boolean representing whether the entire page (main frame) was loaded
16+
or an <iframe> inside the page was loaded. true: If the URL is loaded in the main
17+
frame. false: If the URL is loaded in a <iframe>.'
Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
1-
# Scraped from: https://wiki.multitheftauto.com/wiki/onClientBrowserNavigate
1+
# Scraped from: https://wiki.multitheftauto.com/wiki/OnClientBrowserNavigate
22
name: onClientBrowserNavigate
33
type: client
4-
description: TODO
5-
incomplete: true
64
source_element:
75
type: element
8-
description: TODO
6+
description: The browser element.
7+
description: The event is executed when the browser loads a new page. Do not use [loadBrowserURL](/wiki/LoadBrowserURL
8+
"LoadBrowserURL") in the attached function.
9+
parameters:
10+
- name: targetURL
11+
type: string
12+
description: the page the browser loaded.
13+
- name: isBlocked
14+
type: bool
15+
description: if the browser was created with isLocal set to true, and the browser
16+
tried to load a remote page, this would be set to true (and vice-versa).
17+
- name: isMainFrame
18+
type: bool
19+
description: a boolean representing whether the entire page (main frame) was loaded
20+
or an <iframe> inside the page was loaded.

0 commit comments

Comments
 (0)