text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill-opacity=".67" d="M0 0h682.67v512H0z"/>
</clipPath>
</defs>
<g fill-rule="evenodd" clip-path="url(#a)" transform="scale(.9375)" stroke-width="1pt">
<path fill="#fff" d="M0 1... | odota/web/public/assets/images/flags/kw.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/kw.svg",
"repo_id": "odota",
"token_count": 258
} | 260 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<path fill="#d21034" d="M0 0h640v480H0z"/>
<path fill="#007e3a" d="M120 120h400v240H120z"/>
<circle r="80" cy="240" cx="350" fill="#fff"/>
<circle r="80" cy="240" cx="380" fill="#007e3a"/>
</svg>
| odota/web/public/assets/images/flags/mv.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/mv.svg",
"repo_id": "odota",
"token_count": 132
} | 261 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="480" width="640" viewBox="0 0 640 480">
<defs>
<g id="b">
<g id="a">
<path transform="translate(0 -.325)" d="M0 0v.5L1 0z"/>
<path transform="rotate(-36 .5 -.162)" d="M0 0v-.5L1 0z"/>
</g>
... | odota/web/public/assets/images/flags/nz.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/nz.svg",
"repo_id": "odota",
"token_count": 1344
} | 262 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<path fill="#8d1b3d" d="M0 0h640v480H0z"/>
<path d="M0 0v480h158.4l97.745-26.666-97.745-26.668L256.145 400 158.4 373.334l97.745-26.668L158.4 320l97.745-26.666-97.745-26.668L256.145 240 158.4 213.334l97.745-26.668L158.4 160l97.74... | odota/web/public/assets/images/flags/qa.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/qa.svg",
"repo_id": "odota",
"token_count": 211
} | 263 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<g fill-rule="evenodd">
<path fill="#0000cd" d="M0 320.344h640V480H0z"/>
<path fill="#fff" d="M0 160.688h640v159.656H0z"/>
<path fill="#00cd00" d="M0 0h640v160.688H0z"/>
</g>
</svg>
| odota/web/public/assets/images/flags/sl.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/sl.svg",
"repo_id": "odota",
"token_count": 138
} | 264 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="480" width="640">
<path fill="#060" d="M0 0h640v480H0z"/>
<path fill="#fff" d="M0 0h640v342.857H0z"/>
<path fill="#c00" d="M0 0h640v137.143H0z"/>
<path d="M300.8 233.623a8.571 8.571 0 0 1 15.977 4.046v34.285h6.446V237.67a... | odota/web/public/assets/images/flags/tj.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/tj.svg",
"repo_id": "odota",
"token_count": 916
} | 265 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill-opacity=".67" d="M-71.873-.012h682.68v512.01h-682.68z"/>
</clipPath>
</defs>
<g clip-path="url(#a)" transform="translate(67.379 .011) scale(.93748)">
<g fill-rule="evenodd"... | odota/web/public/assets/images/flags/za.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/za.svg",
"repo_id": "odota",
"token_count": 566
} | 266 |
import querystring from 'querystring';
import config from '../config';
export default function action(type, host, path, params = {}, transform) {
return (dispatch) => {
const url = `${host}/${path}?${typeof params === 'string' ? params.substring(1) : querystring.stringify(params)}`;
const getDataStart = () =... | odota/web/src/actions/action.js/0 | {
"file_path": "odota/web/src/actions/action.js",
"repo_id": "odota",
"token_count": 705
} | 267 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import styled from 'styled-components';
import FlatButton from 'material-ui/FlatButton';
import Spinner from '../Spinner';
const StyledFlatButton = styled(FlatButton)`
min-wid... | odota/web/src/components/AccountWidget/LoggedIn.jsx/0 | {
"file_path": "odota/web/src/components/AccountWidget/LoggedIn.jsx",
"repo_id": "odota",
"token_count": 436
} | 268 |
/* eslint-disable */
import React from 'react';
import Heading from '../Heading';
import IconButton from 'material-ui/IconButton';
import Mic from 'material-ui/svg-icons/av/mic';
// Test
// window.speechSynthesis.speak(new window.SpeechSynthesisUtterance('some text here'))
const responses = [
'Did you say furion can... | odota/web/src/components/Assistant/index.jsx/0 | {
"file_path": "odota/web/src/components/Assistant/index.jsx",
"repo_id": "odota",
"token_count": 3261
} | 269 |
import React from 'react';
import PropTypes from 'prop-types';
import AutoComplete from 'material-ui/AutoComplete';
import FormField from '../Form/FormField';
class ExplorerFormField extends React.Component {
static propTypes = {
fields: PropTypes.arrayOf({}),
label: PropTypes.string,
builderField: PropT... | odota/web/src/components/Explorer/ExplorerFormField.jsx/0 | {
"file_path": "odota/web/src/components/Explorer/ExplorerFormField.jsx",
"repo_id": "odota",
"token_count": 1828
} | 270 |
import React from 'react';
import PropTypes from 'prop-types';
import Chip from 'material-ui/Chip';
import styled from 'styled-components';
const StyledDiv = styled.div`
display: flex;
flex-direction: row;
flex-wrap: wrap;
`;
const ChipList = ({
chipList, deleteChip, name, history,
}) => (
<StyledDiv classN... | odota/web/src/components/Form/ChipList.jsx/0 | {
"file_path": "odota/web/src/components/Form/ChipList.jsx",
"repo_id": "odota",
"token_count": 297
} | 271 |
import React from 'react';
import styled from 'styled-components';
import nanoid from 'nanoid';
import propTypes from 'prop-types';
import ReactTooltip from 'react-tooltip';
import constants from '../constants';
import AbilityTooltip from '../AbilityTooltip';
import config from '../../config';
const Wrapper = styled.... | odota/web/src/components/Hero/Ability.jsx/0 | {
"file_path": "odota/web/src/components/Hero/Ability.jsx",
"repo_id": "odota",
"token_count": 740
} | 272 |
import React from 'react';
import { connect } from 'react-redux';
import { shape, oneOfType, arrayOf } from 'prop-types';
import Table from '../Table';
import { transformations, getOrdinal, rankTierToString } from '../../utility';
const RankingTable = ({
rankings,
strings,
}) => {
const rankingColumns = [{
d... | odota/web/src/components/Hero/RankingTable.jsx/0 | {
"file_path": "odota/web/src/components/Hero/RankingTable.jsx",
"repo_id": "odota",
"token_count": 383
} | 273 |
import React from 'react';
export default props => (
<svg {...props} viewBox="0 0 300 300">
<path
d="M224.9,192.1c0.1-8.7,0.1-27.8-1.5-46.8c0.1,8,0.3,15.3,0.6,19.1C224.2,166.6,224.5,178,224.9,192.1z"
/>
<path
d="M152,28.1c0.3-6.1-0.1-12.7,5.1-12.3c2.5,0.2,6.8,0.8,12.1,1.9c5.9,1.2,5.1,33.1,5.1... | odota/web/src/components/Icons/Backpack.jsx/0 | {
"file_path": "odota/web/src/components/Icons/Backpack.jsx",
"repo_id": "odota",
"token_count": 1833
} | 274 |
import React from 'react';
export default props => (
<svg {...props} viewBox="0 0 96 96">
<g>
<path d="M66.3,50.3v-4.6c0-0.6-0.2-1.2-0.7-1.6c-0.5-0.5-1-0.7-1.6-0.7H32c-0.6,0-1.2,0.2-1.6,0.7
c-0.5,0.5-0.7,1-0.7,1.6v4.6c0,0.6,0.2,1.2,0.7,1.6c0.5,0.5,1,0.7,1.6,0.7H64c0.6,0,1.2-0.2,1.6-0.7C66.1,51.4,66.3,5... | odota/web/src/components/Icons/MinusSquare.jsx/0 | {
"file_path": "odota/web/src/components/Icons/MinusSquare.jsx",
"repo_id": "odota",
"token_count": 453
} | 275 |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import playerColors from 'dotaconstants/build/player_colors.json';
import heroes from 'dotaconstants/build/heroes.json';
import ReactTooltip from 'react-tooltip';
import styled from 'styled-components';
import {
pad,... | odota/web/src/components/Match/BuildingMap/BuildingMap.jsx/0 | {
"file_path": "odota/web/src/components/Match/BuildingMap/BuildingMap.jsx",
"repo_id": "odota",
"token_count": 7762
} | 276 |
import React from 'react';
import styled from 'styled-components';
import MatchGraph from '../../Visualizations/Graph/MatchGraph';
import TeamTable from '../TeamTable';
import AbilityDraftTable from '../AbilityDraftTable';
import mcs from '../matchColumns';
import BuildingMap from '../BuildingMap';
import Collapsible f... | odota/web/src/components/Match/Overview/Overview.jsx/0 | {
"file_path": "odota/web/src/components/Match/Overview/Overview.jsx",
"repo_id": "odota",
"token_count": 1268
} | 277 |
import Match from './Match';
export default Match;
| odota/web/src/components/Match/index.js/0 | {
"file_path": "odota/web/src/components/Match/index.js",
"repo_id": "odota",
"token_count": 14
} | 278 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
// import ActionHelp from 'material-ui/svg-icons/action/help';
import styled from 'styled-components';
import Spinner from '../../Spinner';
import Error from '../../Error';
import PlayedWith from './PlayedWith';
import... | odota/web/src/components/Player/Header/PlayerStats.jsx/0 | {
"file_path": "odota/web/src/components/Player/Header/PlayerStats.jsx",
"repo_id": "odota",
"token_count": 1038
} | 279 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Checkbox from 'material-ui/Checkbox';
import styled from 'styled-components';
import {
getPlayerRecentMatches,
getPlayerHeroes,
getPlayerPeers,
getPlayerCounts,
getPlayerMatches,
} from '../../../../ac... | odota/web/src/components/Player/Pages/Overview/Overview.jsx/0 | {
"file_path": "odota/web/src/components/Player/Pages/Overview/Overview.jsx",
"repo_id": "odota",
"token_count": 4317
} | 280 |
export default [
'kills',
'actions_per_min',
'assists',
'comeback',
'courier_kills',
'deaths',
'denies',
'duration',
'lane_efficiency_pct',
'purchase_gem',
'gold_per_min',
'hero_damage',
'hero_healing',
'kda',
'last_hits',
'level',
'loss',
'pings',
'neutral_kills',
'purchase_ward... | odota/web/src/components/Player/Pages/matchDataColumns.js/0 | {
"file_path": "odota/web/src/components/Player/Pages/matchDataColumns.js",
"repo_id": "odota",
"token_count": 229
} | 281 |
import styled from 'styled-components';
import constants from '../constants';
export const StyledDiv = styled.div`
.filter > label {
color: rgba(255, 255, 255, 0.3) !important;
}
.query:hover label {
color: ${constants.colorBlue} !important;
}
.filter:hover label {
color: ${constants.colorMutedLi... | odota/web/src/components/Scenarios/Styles.jsx/0 | {
"file_path": "odota/web/src/components/Scenarios/Styles.jsx",
"repo_id": "odota",
"token_count": 455
} | 282 |
import React from 'react';
import ContentLoader from 'react-content-loader';
const TableSkeleton = props => (
<ContentLoader
height={160}
width={500}
primaryColor="#666"
secondaryColor="#ecebeb"
animate
{...props}
>
<rect x="0" y="10" rx="5" ry="5" width="500" height="10" />
<rect x... | odota/web/src/components/Skeletons/TableSkeleton.jsx/0 | {
"file_path": "odota/web/src/components/Skeletons/TableSkeleton.jsx",
"repo_id": "odota",
"token_count": 335
} | 283 |
import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import HardwareKeyboardArrowRight from 'material-ui/svg-icons/hardware/keyboard-arrow-right';
import constants from '../constants';
const TableLink = ({
to, children, target, color,
}) => (
<Link to={to} target=... | odota/web/src/components/Table/TableLink.jsx/0 | {
"file_path": "odota/web/src/components/Table/TableLink.jsx",
"repo_id": "odota",
"token_count": 274
} | 284 |
import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import {
Bar,
BarChart,
CartesianGrid,
Cell,
Label,
ResponsiveContainer,
Tooltip,
XAxis,
YAxis,
} from 'recharts';
import { formatGraphValueData, hsvToRgb } from '../../../utility';
import { StyledTo... | odota/web/src/components/Visualizations/Graph/HistogramGraph.jsx/0 | {
"file_path": "odota/web/src/components/Visualizations/Graph/HistogramGraph.jsx",
"repo_id": "odota",
"token_count": 1222
} | 285 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import wordcloud from 'wordcloud';
import nanoid from 'nanoid';
const stopWords = 'a,am,an,and,are,as,at,be,by,for,from,how,i,im,in,is,it,not,of,on,or,that,the,this,to,was,what,when,where,who,will,with';
function isS... | odota/web/src/components/Wordcloud/Wordcloud.jsx/0 | {
"file_path": "odota/web/src/components/Wordcloud/Wordcloud.jsx",
"repo_id": "odota",
"token_count": 989
} | 286 |
{
"yes": "oui",
"no": "non",
"abbr_thousand": "k",
"abbr_million": "M",
"abbr_billion": "Mrd",
"abbr_trillion": "T",
"abbr_quadrillion": "Qa",
"abbr_not_available": "N/A",
"abbr_pick": "P",
"abbr_win": "V",
"abbr_number": "n°",
"analysis_eff": "Efficacité en lane",
"analysis_farm_drought": "Pl... | odota/web/src/lang/fr-FR.json/0 | {
"file_path": "odota/web/src/lang/fr-FR.json",
"repo_id": "odota",
"token_count": 20353
} | 287 |
export type GlobalString = {
th_hero_id: string
tooltip_hero_id: string
hero_pick_ban_rate: string
hero_pick_rate: string
hero_ban_rate: string
hero_win_rate: string
rank_tier_overall: string
rank_tier_high: string
rank_tier_mid: string
rank_tier_low: string
abbr_pick: string
abbr_win: string
... | odota/web/src/types/common/GlobalString.ts/0 | {
"file_path": "odota/web/src/types/common/GlobalString.ts",
"repo_id": "odota",
"token_count": 142
} | 288 |
[
{
"match_id": 5240751233,
"player_slot": 131,
"radiant_win": true,
"duration": 2553,
"game_mode": 2,
"lobby_type": 1,
"start_time": 1581595721,
"hero_id": 86,
"version": 21,
"kills": 1,
"deaths": 4,
"assists": 15,
"skill": null,
"leaver_status": 0,
"party_size": 10,
"item_0": null,
... | odota/web/testcafe/cachedAjax/players_101695162_matches_significant=0&proje.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/players_101695162_matches_significant=0&proje.json",
"repo_id": "odota",
"token_count": 1494191
} | 289 |
[
{
"match_id": 4105872202,
"match_seq_num": 3559380024,
"radiant_win": true,
"start_time": 1536368466,
"duration": 2003,
"avg_mmr": 6240,
"num_mmr": 7,
"lobby_type": 7,
"game_mode": 22,
"avg_rank_tier": 80,
"num_rank_tier": 8,
"cluster": 135,
"radiant_team": "91,72,86,33,111",
"dire_team":... | odota/web/testcafe/cachedAjax/publicMatches_mmr_descending=1.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/publicMatches_mmr_descending=1.json",
"repo_id": "odota",
"token_count": 18732
} | 290 |
import {
Selector,
} from 'testcafe';
import {
fixtureBeforeHook,
fixtureBeforeEachHook,
fixtureAfterHook,
fixtureRequestHooks,
host,
} from './../testsUtility';
const paths = [
'/players/101695162/overview',
'/players/101695162/matches',
'/players/101695162/heroes',
'/players/101695162/peers',
'... | odota/web/testcafe/tests/players.js/0 | {
"file_path": "odota/web/testcafe/tests/players.js",
"repo_id": "odota",
"token_count": 373
} | 291 |
package pawndex
import (
"encoding/json"
bolt "go.etcd.io/bbolt"
"github.com/openmultiplayer/web/internal/config"
)
var packagesBucket = []byte("packages")
type DB struct {
db *bolt.DB
}
type Entry struct {
Pkg Package
Marked bool
}
func New(cfg config.Config) (Repository, error) {
db, err := bolt.Open... | openmultiplayer/web/app/resources/pawndex/boltdb.go/0 | {
"file_path": "openmultiplayer/web/app/resources/pawndex/boltdb.go",
"repo_id": "openmultiplayer",
"token_count": 1313
} | 292 |
package user
import (
"time"
"github.com/openmultiplayer/web/internal/db"
)
type AuthMethod string
type User struct {
ID string `json:"id"`
Email string `json:"email"`
AuthMethod string `json:"authMethod"` // enum: "DISCORD", "GITHUB"
Name string `json:"name"`
Bio *string `... | openmultiplayer/web/app/resources/user/model.go/0 | {
"file_path": "openmultiplayer/web/app/resources/user/model.go",
"repo_id": "openmultiplayer",
"token_count": 689
} | 293 |
package services
import (
"go.uber.org/fx"
"github.com/openmultiplayer/web/app/services/authentication"
"github.com/openmultiplayer/web/app/services/docsindex"
"github.com/openmultiplayer/web/app/services/pawndexworker"
"github.com/openmultiplayer/web/app/services/serververify"
"github.com/openmultiplayer/web/a... | openmultiplayer/web/app/services/services.go/0 | {
"file_path": "openmultiplayer/web/app/services/services.go",
"repo_id": "openmultiplayer",
"token_count": 231
} | 294 |
package servers
import (
"encoding/json"
"net/http"
"github.com/pkg/errors"
"github.com/openmultiplayer/web/app/resources/server"
"github.com/openmultiplayer/web/internal/web"
)
type addPayload struct {
IP string `json:"ip"`
}
func (s *service) add(w http.ResponseWriter, r *http.Request) {
var address strin... | openmultiplayer/web/app/transports/api/servers/h_add.go/0 | {
"file_path": "openmultiplayer/web/app/transports/api/servers/h_add.go",
"repo_id": "openmultiplayer",
"token_count": 530
} | 295 |
package main
import (
"fmt"
"time"
"go.uber.org/zap"
"github.com/openmultiplayer/web/app/services/docsindex"
"github.com/openmultiplayer/web/internal/config"
)
func main() {
l, _ := zap.NewDevelopment()
start := time.Now()
idx, err := docsindex.New(l, config.Config{
DocsSourcesPath: "docs/",
DocsIndexPa... | openmultiplayer/web/cmd/indexbuilder/main.go/0 | {
"file_path": "openmultiplayer/web/cmd/indexbuilder/main.go",
"repo_id": "openmultiplayer",
"token_count": 210
} | 296 |
---
title: OnDialogResponse
description: This callback is called when a player responds to a dialog shown using ShowPlayerDialog by either clicking a button, pressing ENTER/ESC or double-clicking a list item (if using a list style dialog).
tags: ["dialog"]
---
## Description
This callback is called when a player resp... | openmultiplayer/web/docs/scripting/callbacks/OnDialogResponse.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnDialogResponse.md",
"repo_id": "openmultiplayer",
"token_count": 2934
} | 297 |
---
title: OnPlayerEnterRaceCheckpoint
description: This callback is called when a player enters a race checkpoint.
tags: ["player", "checkpoint", "racecheckpoint"]
---
## Description
This callback is called when a player enters a race checkpoint.
| Name | Description |
... | openmultiplayer/web/docs/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md",
"repo_id": "openmultiplayer",
"token_count": 524
} | 298 |
---
title: OnPlayerPickupStreamIn
description: This callback is called when a player-pickup enters the visual range of the player.
tags: ["player", "pickup", "playerpickup"]
---
<VersionWarn name='callback' version='omp v1.1.0.2612' />
## Description
This callback is called when a player-pickup enters the visual ran... | openmultiplayer/web/docs/scripting/callbacks/OnPlayerPickupStreamIn.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerPickupStreamIn.md",
"repo_id": "openmultiplayer",
"token_count": 649
} | 299 |
---
title: OnRconLoginAttempt
description: This callback is called when someone attempts to log in to RCON in-game; successful or not.
tags: ["rcon", "administration"]
---
## Description
This callback is called when someone attempts to log in to RCON in-game; successful or not.
| Name | Description ... | openmultiplayer/web/docs/scripting/callbacks/OnRconLoginAttempt.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnRconLoginAttempt.md",
"repo_id": "openmultiplayer",
"token_count": 900
} | 300 |
---
title: AddPlayerClass
description: Adds a class to class selection.
tags: ["player", "class"]
---
## Description
Adds a class to class selection. Classes are used so players may spawn with a skin of their choice.
| Name | Description |
| ------------... | openmultiplayer/web/docs/scripting/functions/AddPlayerClass.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/AddPlayerClass.md",
"repo_id": "openmultiplayer",
"token_count": 931
} | 301 |
---
title: AreAllAnimationsEnabled
description: Are the animations missing from some versions enabled?
tags: ["animation"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Are the animations missing from some versions enabled?
## Returns
true: Enable.
false: False.
## Examples
```c
if (AreAllAnimati... | openmultiplayer/web/docs/scripting/functions/AreAllAnimationsEnabled.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/AreAllAnimationsEnabled.md",
"repo_id": "openmultiplayer",
"token_count": 196
} | 302 |
---
title: BeginObjectEditing
description: Allows a player to edit an object (position and rotation) using their mouse on a GUI (Graphical User Interface).
tags: ["player", "object"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Allows a player to edit an object (position and rotation) using their mou... | openmultiplayer/web/docs/scripting/functions/BeginObjectEditing.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/BeginObjectEditing.md",
"repo_id": "openmultiplayer",
"token_count": 588
} | 303 |
---
title: ConnectNPC
description: Connect an NPC to the server.
tags: ["npc"]
---
## Description
Connect an NPC to the server.
| Name | Description |
| -------------- | ------------------------------------------------------------... | openmultiplayer/web/docs/scripting/functions/ConnectNPC.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/ConnectNPC.md",
"repo_id": "openmultiplayer",
"token_count": 370
} | 304 |
---
title: DeletePVar
description: Deletes a previously set player variable.
tags: ["player variable", "pvar"]
---
## Description
Deletes a previously set player variable.
| Name | Description |
| ------------ | ----------------------------------------------------- |... | openmultiplayer/web/docs/scripting/functions/DeletePVar.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/DeletePVar.md",
"repo_id": "openmultiplayer",
"token_count": 442
} | 305 |
---
title: DisablePlayerRaceCheckpoint
description: Disable any initialized race checkpoints for a specific player, since you can only have one at any given time.
tags: ["player", "checkpoint", "racecheckpoint"]
---
## Description
Disable any initialized race checkpoints for a specific player, since you can only have... | openmultiplayer/web/docs/scripting/functions/DisablePlayerRaceCheckpoint.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/DisablePlayerRaceCheckpoint.md",
"repo_id": "openmultiplayer",
"token_count": 482
} | 306 |
---
title: ForceClassSelection
description: Forces a player to go back to class selection.
tags: ["class"]
---
## Description
Forces a player to go back to class selection.
| Name | Description |
| -------- | ------------------------------------------- |
| playerid | The player to... | openmultiplayer/web/docs/scripting/functions/ForceClassSelection.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/ForceClassSelection.md",
"repo_id": "openmultiplayer",
"token_count": 395
} | 307 |
---
title: GangZoneStopFlashForPlayer
description: Stops a gangzone flashing for a player.
tags: ["player", "gangzone"]
---
## Description
Stops a gangzone flashing for a player.
| Name | Description |
| -------- | ------------------------------------------------------... | openmultiplayer/web/docs/scripting/functions/GangZoneStopFlashForPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GangZoneStopFlashForPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 566
} | 308 |
---
title: GetActorVirtualWorld
description: Get the virtual world of an actor.
tags: ["actor"]
---
<VersionWarn version='SA-MP 0.3.7' />
## Description
Get the virtual world of an actor.
| Name | Description |
| ------- | ------------------------------------------------ |
| ... | openmultiplayer/web/docs/scripting/functions/GetActorVirtualWorld.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetActorVirtualWorld.md",
"repo_id": "openmultiplayer",
"token_count": 298
} | 309 |
---
title: GetMenuItem
description: Get the text in the specified cell - addressed by column and row.
tags: ["menu"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the text in the specified cell - addressed by column and row.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/GetMenuItem.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetMenuItem.md",
"repo_id": "openmultiplayer",
"token_count": 322
} | 310 |
---
title: GetObjectPos
description: Get the position of an object.
tags: ["object"]
---
## Description
Get the position of an object.
| Name | Description |
| -------- | ------------------------------------------------------------------- |
| objectid | The... | openmultiplayer/web/docs/scripting/functions/GetObjectPos.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetObjectPos.md",
"repo_id": "openmultiplayer",
"token_count": 749
} | 311 |
---
title: GetPlayer3DTextLabelColor
description: Gets the player's 3D text label color.
tags: ["player", "3dtextlabel"]
---
:::warning
This function is deprecated. Please see [GetPlayer3DTextLabelColour](GetPlayer3DTextLabelColour).
:::
## Description
Gets the player's 3D text label color.
| Name ... | openmultiplayer/web/docs/scripting/functions/GetPlayer3DTextLabelColor.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayer3DTextLabelColor.md",
"repo_id": "openmultiplayer",
"token_count": 430
} | 312 |
---
title: GetPlayerCameraFrontVector
description: This function will return the current direction of player's aiming in 3-D space, the coords are relative to the camera position, see GetPlayerCameraPos.
tags: ["player", "camera"]
---
## Description
This function will return the current direction of player's aiming i... | openmultiplayer/web/docs/scripting/functions/GetPlayerCameraFrontVector.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerCameraFrontVector.md",
"repo_id": "openmultiplayer",
"token_count": 834
} | 313 |
---
title: GetPlayerDialogID
description: Get the ID of the dialog currently show to the player.
tags: ["player", "dialog"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the ID of the dialog currently show to the player.
| Name | Description |
|----------|-----------------------|
| ... | openmultiplayer/web/docs/scripting/functions/GetPlayerDialogID.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerDialogID.md",
"repo_id": "openmultiplayer",
"token_count": 298
} | 314 |
---
title: GetPlayerMarkerForPlayer
description: Get the colour of a player's nametag and radar blip for another player.
tags: ["player"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the colour of a player's **nametag** and **radar blip** for another player.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/GetPlayerMarkerForPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerMarkerForPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 706
} | 315 |
---
title: GetPlayerObjectSyncRotation
description: Get the sync rotation of a player-object.
tags: ["player", "object", "playerobject"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the sync rotation of a player-object.
| Name | Description |
|----------|--------------------... | openmultiplayer/web/docs/scripting/functions/GetPlayerObjectSyncRotation.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerObjectSyncRotation.md",
"repo_id": "openmultiplayer",
"token_count": 329
} | 316 |
---
title: GetPlayerSpectateID
description: Gets the ID of the player or vehicle the player is spectating (watching).
tags: ["player"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the ID of the player or vehicle the player is spectating (watching).
| Name | Description |
|--------... | openmultiplayer/web/docs/scripting/functions/GetPlayerSpectateID.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerSpectateID.md",
"repo_id": "openmultiplayer",
"token_count": 367
} | 317 |
---
title: GetPlayerVirtualWorld
description: Retrieves the current virtual world the player is in.
tags: ["player"]
---
## Description
Retrieves the current virtual world the player is in.
| Name | Description |
| -------- | -------------------------------------------------... | openmultiplayer/web/docs/scripting/functions/GetPlayerVirtualWorld.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerVirtualWorld.md",
"repo_id": "openmultiplayer",
"token_count": 382
} | 318 |
---
title: GetSVarsUpperIndex
description: Each SVar (server-variable) has its own unique identification number for lookup, this function returns the highest ID.
tags: ["server variable", "svar"]
---
## Description
Each SVar (server-variable) has its own unique identification number for lookup, this function returns ... | openmultiplayer/web/docs/scripting/functions/GetSVarsUpperIndex.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetSVarsUpperIndex.md",
"repo_id": "openmultiplayer",
"token_count": 390
} | 319 |
---
title: GetVehicleDriver
description: Get the playerid of the person driving the vehicle.
tags: ["vehicle"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the playerid of the person driving the vehicle.
## Parameters
| Name | Description |
|-----------|---... | openmultiplayer/web/docs/scripting/functions/GetVehicleDriver.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetVehicleDriver.md",
"repo_id": "openmultiplayer",
"token_count": 312
} | 320 |
---
title: GetVehicleParamsEx
description: Gets a vehicle's parameters.
tags: ["vehicle"]
---
## Description
Gets a vehicle's parameters.
| Name | Description |
| --------------- | ------------------------------------------------------------------- |... | openmultiplayer/web/docs/scripting/functions/GetVehicleParamsEx.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetVehicleParamsEx.md",
"repo_id": "openmultiplayer",
"token_count": 647
} | 321 |
---
title: GetVehicles
description: Gets an array variable of the IDs of the created vehicles on the server.
tags: ["vehicle"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets an array variable of the IDs of the created vehicles on the server.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/GetVehicles.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetVehicles.md",
"repo_id": "openmultiplayer",
"token_count": 381
} | 322 |
---
title: IsObjectMaterialSlotUsed
description: Checks if a slot of object material is used.
tags: ["object"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Checks if a slot of object material is used.
| Name | Description |
|---------------|------------------... | openmultiplayer/web/docs/scripting/functions/IsObjectMaterialSlotUsed.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/IsObjectMaterialSlotUsed.md",
"repo_id": "openmultiplayer",
"token_count": 595
} | 323 |
---
title: IsPlayerInGangZone
description: Check if the player in gangzone
tags: ["player", "gangzone"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Check if the player in gangzone.
| Name | Description |
| ----------- | ------------------------... | openmultiplayer/web/docs/scripting/functions/IsPlayerInGangZone.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/IsPlayerInGangZone.md",
"repo_id": "openmultiplayer",
"token_count": 567
} | 324 |
---
title: IsPlayerWidescreenToggled
description: Checks if a player widescreen is on or off.
tags: ["player"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Checks if a player widescreen is on or off.
| Name | Description |
|----------|--------------------------------|
| player... | openmultiplayer/web/docs/scripting/functions/IsPlayerWidescreenToggled.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/IsPlayerWidescreenToggled.md",
"repo_id": "openmultiplayer",
"token_count": 310
} | 325 |
---
title: IsValidPlayerPickup
description: Checks if a player-pickup is valid.
tags: ["player", "pickup", "playerpickup"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Checks if a player-pickup is valid.
| Name | Description |
|----------|-------------------------------... | openmultiplayer/web/docs/scripting/functions/IsValidPlayerPickup.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/IsValidPlayerPickup.md",
"repo_id": "openmultiplayer",
"token_count": 655
} | 326 |
---
title: ManualVehicleEngineAndLights
description: Use this function before any player connects (OnGameModeInit) to tell all clients that the script will control vehicle engines and lights.
tags: ["vehicle"]
---
## Description
Use this function before any player connects (OnGameModeInit) to tell all clients that th... | openmultiplayer/web/docs/scripting/functions/ManualVehicleEngineAndLights.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/ManualVehicleEngineAndLights.md",
"repo_id": "openmultiplayer",
"token_count": 332
} | 327 |
---
title: PlayerGangZoneFlash
description: Start player gangzone flash
tags: ["player", "gangzone", "playergangzone"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Start player gangzone flash.
| Name | Description |
| ----------- | --------... | openmultiplayer/web/docs/scripting/functions/PlayerGangZoneFlash.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/PlayerGangZoneFlash.md",
"repo_id": "openmultiplayer",
"token_count": 841
} | 328 |
---
title: PlayerTextDrawColor
description: Sets the text color of a player-textdraw.
tags: ["player", "textdraw", "playertextdraw"]
---
## Description
Sets the text color of a player-textdraw
| Name | Description |
| ----------------- | ----------------------... | openmultiplayer/web/docs/scripting/functions/PlayerTextDrawColor.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/PlayerTextDrawColor.md",
"repo_id": "openmultiplayer",
"token_count": 853
} | 329 |
---
title: PlayerTextDrawGetPreviewRot
description: Gets the rotation and zoom of a 3D model preview player-textdraw.
tags: ["player", "textdraw", "playertextdraw"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the rotation and zoom of a 3D model preview player-textdraw.
| Name | De... | openmultiplayer/web/docs/scripting/functions/PlayerTextDrawGetPreviewRot.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/PlayerTextDrawGetPreviewRot.md",
"repo_id": "openmultiplayer",
"token_count": 941
} | 330 |
---
title: RemoveVehicleComponent
description: Remove a component from a vehicle.
tags: ["vehicle"]
---
## Description
Remove a component from a vehicle.
| Name | Description |
|--------------------------------------------|--------------------------------|
| v... | openmultiplayer/web/docs/scripting/functions/RemoveVehicleComponent.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/RemoveVehicleComponent.md",
"repo_id": "openmultiplayer",
"token_count": 454
} | 331 |
---
title: SendDeathMessageToPlayer
description: Adds a death to the 'killfeed' on the right-hand side of the screen for a single player.
tags: ["player"]
---
## Description
Adds a death to the 'killfeed' on the right-hand side of the screen for a single player.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/SendDeathMessageToPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SendDeathMessageToPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 716
} | 332 |
---
title: SetGravity
description: Set the gravity for all players.
tags: []
---
## Description
Set the gravity for all players.
| Name | Description |
| ------------- | --------------------------------------------------------------------- |
| Float:... | openmultiplayer/web/docs/scripting/functions/SetGravity.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetGravity.md",
"repo_id": "openmultiplayer",
"token_count": 334
} | 333 |
---
title: SetPVarInt
description: Set an integer player variable.
tags: ["player variable", "pvar"]
---
## Description
Set an integer player variable.
| Name | Description |
| ------------ | ------------------------------------------------------- |
| playerid ... | openmultiplayer/web/docs/scripting/functions/SetPVarInt.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetPVarInt.md",
"repo_id": "openmultiplayer",
"token_count": 529
} | 334 |
---
title: SetPlayerCheckpoint
description: Sets a checkpoint (red cylinder) for a player.
tags: ["player", "checkpoint"]
---
## Description
Sets a checkpoint (red cylinder) for a player. Also shows a red blip on the radar. When players enter a checkpoint, OnPlayerEnterCheckpoint is called and actions can be performe... | openmultiplayer/web/docs/scripting/functions/SetPlayerCheckpoint.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetPlayerCheckpoint.md",
"repo_id": "openmultiplayer",
"token_count": 891
} | 335 |
---
title: SetPlayerObjectNoCameraCollision
description: Toggles a player object camera collision.
tags: ["player"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Toggles a player object camera collision.
| Name | Description |
| -------- | ----------------------------... | openmultiplayer/web/docs/scripting/functions/SetPlayerObjectNoCameraCollision.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetPlayerObjectNoCameraCollision.md",
"repo_id": "openmultiplayer",
"token_count": 372
} | 336 |
---
title: SetPlayerTime
description: Sets the game time for a player.
tags: ["player"]
---
## Description
Sets the game time for a player. If a player's clock is enabled ([TogglePlayerClock](TogglePlayerClock)) the time displayed by it will update automatically.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/SetPlayerTime.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetPlayerTime.md",
"repo_id": "openmultiplayer",
"token_count": 510
} | 337 |
---
title: SetVehicleBeenOccupied
description: Sets the vehicle's occupancy.
tags: ["vehicle"]
---
<VersionWarn version='omp v1.1.0.2612' />
:::warning
This function has not yet been implemented.
:::
## Description
Sets the vehicle's occupancy.
## Parameters
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/SetVehicleBeenOccupied.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetVehicleBeenOccupied.md",
"repo_id": "openmultiplayer",
"token_count": 242
} | 338 |
---
title: SetVehicleVirtualWorld
description: Sets the 'virtual world' of a vehicle.
tags: ["vehicle"]
---
## Description
Sets the 'virtual world' of a vehicle. Players will only be able to see vehicles in their own virtual world.
| Name | Description |
| ------------ ... | openmultiplayer/web/docs/scripting/functions/SetVehicleVirtualWorld.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetVehicleVirtualWorld.md",
"repo_id": "openmultiplayer",
"token_count": 275
} | 339 |
---
title: StopObject
description: Stop a moving object after MoveObject has been used.
tags: ["object"]
---
## Description
Stop a moving object after [MoveObject](MoveObject) has been used.
| Name | Description |
| -------- | ------------------------------------ |
| objectid | The ID of... | openmultiplayer/web/docs/scripting/functions/StopObject.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/StopObject.md",
"repo_id": "openmultiplayer",
"token_count": 690
} | 340 |
---
title: TextDrawGetBackgroundColor
description: Gets the background color of a textdraw.
tags: ["textdraw"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the background color of a textdraw.
| Name | Description |
| ----------- | --------------... | openmultiplayer/web/docs/scripting/functions/TextDrawGetBackgroundColor.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/TextDrawGetBackgroundColor.md",
"repo_id": "openmultiplayer",
"token_count": 686
} | 341 |
---
title: TextDrawGetTextSize
description: Gets the X axis and Y axis of the textdraw.
tags: ["textdraw"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the X axis and Y axis of the textdraw.
| Name | Description |
| ------------- | ... | openmultiplayer/web/docs/scripting/functions/TextDrawGetTextSize.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/TextDrawGetTextSize.md",
"repo_id": "openmultiplayer",
"token_count": 806
} | 342 |
---
title: TextDrawSetString
description: Changes the text on a textdraw.
tags: ["textdraw"]
---
## Description
Changes the text on a textdraw.
| Name | Description |
| ---------------- | ------------------------------------------ |
| Text:textid | The TextDraw to chan... | openmultiplayer/web/docs/scripting/functions/TextDrawSetString.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/TextDrawSetString.md",
"repo_id": "openmultiplayer",
"token_count": 914
} | 343 |
---
title: UpdatePlayer3DTextLabelText
description: Updates a player 3D Text Label's text and color.
tags: ["player", "3dtextlabel"]
---
## Description
Updates a player 3D Text Label's text and color
| Name | Description |
| ------------------- | -----... | openmultiplayer/web/docs/scripting/functions/UpdatePlayer3DTextLabelText.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/UpdatePlayer3DTextLabelText.md",
"repo_id": "openmultiplayer",
"token_count": 531
} | 344 |
---
title: clamp
description: Force a value to be inside a range.
tags: ["core"]
---
<LowercaseNote />
## Description
Force a value to be inside a range.
| Name | Description |
| ----- | -------------------------------------------------- |
| value | The value to force in a ra... | openmultiplayer/web/docs/scripting/functions/clamp.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/clamp.md",
"repo_id": "openmultiplayer",
"token_count": 368
} | 345 |
---
title: filecrc
description: Return the 32-bit CRC value of a file.
tags: ["file management"]
---
<VersionWarn version='omp v1.1.0.2612' />
<LowercaseNote />
## Description
Return the 32-bit CRC value of a file.
| Name | Description |
| ---------------- | --------------------- |
| const fi... | openmultiplayer/web/docs/scripting/functions/filecrc.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/filecrc.md",
"repo_id": "openmultiplayer",
"token_count": 687
} | 346 |
---
title: floatsub
description: Subtracts one float from another one.
tags: ["math", "floating-point"]
---
<LowercaseNote />
## Description
Subtracts one float from another one. Note that this function has no real use, as one can simply use the standard operator (-) instead.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/floatsub.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/floatsub.md",
"repo_id": "openmultiplayer",
"token_count": 394
} | 347 |
---
title: getdate
description: Get the current server date, which will be stored in the variables &year, &month and &day.
tags: ["time", "date"]
---
<LowercaseNote />
## Description
Get the current server date, which will be stored in the variables &year, &month and &day.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/getdate.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/getdate.md",
"repo_id": "openmultiplayer",
"token_count": 322
} | 348 |
---
title: sendpacket
description: Sends a packet. (deprecated function)
tags: ["datagram"]
---
<LowercaseNote />
:::warning
This function is deprecated, Use [HTTP](HTTP) or [pawn-requests](https://github.com/Southclaws/pawn-requests) plugin.
:::
## Description
Sends a packet.
| Name | Descri... | openmultiplayer/web/docs/scripting/functions/sendpacket.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/sendpacket.md",
"repo_id": "openmultiplayer",
"token_count": 793
} | 349 |
---
title: strunpack
description: This function can be used to unpack a string.
tags: ["string"]
---
<LowercaseNote />
## Description
This function can be used to unpack a string.
| Name | Description |
| ------------------------... | openmultiplayer/web/docs/scripting/functions/strunpack.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/strunpack.md",
"repo_id": "openmultiplayer",
"token_count": 585
} | 350 |
# PAWN

### embedded scripting language
##### February 2006
---
##### ITB CompuPhase
##### ii
---
“Java” is a trademark of Sun Microsystems, Inc.
“Microsoft” and “Microsoft Windows” are registered trademarks of
Microsoft Corporation.
“Linux” is ... | openmultiplayer/web/docs/scripting/language/reference/00-Contents.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/language/reference/00-Contents.md",
"repo_id": "openmultiplayer",
"token_count": 752
} | 351 |
---
title: Download Request Types
description: Download request types. (used by OnPlayerRequestDownload)
---
:::note
These definitions are used by [OnPlayerRequestDownload](../callbacks/OnPlayerRequestDownload) callback.
:::
| ID | Definition |
|----|-------------------------------|
| -1 | UNKNOW... | openmultiplayer/web/docs/scripting/resources/download-requests.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/resources/download-requests.md",
"repo_id": "openmultiplayer",
"token_count": 164
} | 352 |
---
title: Limits
description: A list of all limitations imposed by the game/server.
tags: []
---
## In-game Entities
| Type | Limit (0.3.7) |
| ------------------------------------------------------------- | --------------- |
| Players ... | openmultiplayer/web/docs/scripting/resources/limits.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/resources/limits.md",
"repo_id": "openmultiplayer",
"token_count": 2576
} | 353 |
---
title: Record Types
description: Record types used by StartRecordingPlayerData.
tags: ["player"]
sidebar_label: Record Types
---
:::info
Here you can find all of the record types which can be used by [StartRecordingPlayerData](../functions/StartRecordingPlayerData).
:::
| Value | Definition |
... | openmultiplayer/web/docs/scripting/resources/recordtypes.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/resources/recordtypes.md",
"repo_id": "openmultiplayer",
"token_count": 173
} | 354 |
---
title: Tire States
description: Information about byte size and its corresponding tire state bits.
---
:::note
Tire states are used by natives such as [GetVehicleDamageStatus](../functions/GetVehicleDamageStatus) and [UpdateVehicleDamageStatus](../functions/UpdateVehicleDamageStatus).
:::
:::note
Even vehicles... | openmultiplayer/web/docs/scripting/resources/tirestates.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/resources/tirestates.md",
"repo_id": "openmultiplayer",
"token_count": 1530
} | 355 |
---
title: "Controlling a Server"
description: Useful commands for controlling a server.
---
## Changing Gamemode
### Running a custom/downloaded gamemode
- Open the directory you installed the server to (eg: /Rockstar Games/GTA San Andreas/server)
- Take the downloaded/compiled .amx file and place it in the gamemod... | openmultiplayer/web/docs/server/ControllingServer.md/0 | {
"file_path": "openmultiplayer/web/docs/server/ControllingServer.md",
"repo_id": "openmultiplayer",
"token_count": 5399
} | 356 |
---
title: OnGameModeInit
description: Ovaj callback se aktivira kada se gamemode pokrene.
tags: []
---
## Deskripcija
Ovaj callback se aktivira kada se gamemode pokrene.
## Primjeri
```c
public OnGameModeInit()
{
print("Gamemode pokrenut!");
return 1;
}
```
## Zabilješke
:::tip
Ova funkcija se također m... | openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnGameModeInit.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnGameModeInit.md",
"repo_id": "openmultiplayer",
"token_count": 232
} | 357 |
---
title: OnPlayerEnterCheckpoint
description: Ovaj callback je pozvan kada igrač uđe u checkpoint koji je postavljen za tog igrača.
tags: ["player", "checkpoint"]
---
## Deskripcija
Ovaj callback je pozvan kada igrač uđe u checkpoint koji je postavljen za tog igrača.
| Name | Deskripcija |
|... | openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnPlayerEnterCheckpoint.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnPlayerEnterCheckpoint.md",
"repo_id": "openmultiplayer",
"token_count": 625
} | 358 |
---
title: OnPlayerRequestSpawn
description: Pozvano kada igrač pokuša da se spawnuje (stvori) preko selekcije klase bilo pritiskom SHIFT tipke ili klikom na 'Spawn' dugme.
tags: ["player"]
---
## Deskripcija
Pozvano kada igrač pokuša da se spawnuje (stvori) preko selekcije klase bilo pritiskom SHIFT tipke ili klikom... | openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnPlayerRequestSpawn.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnPlayerRequestSpawn.md",
"repo_id": "openmultiplayer",
"token_count": 490
} | 359 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.