text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
import { TestResultError, TestSession, Logger } from '@web/test-runner-core';
import { gray, green, red } from 'nanocolors';
import * as diff from 'diff';
import { getFailedOnBrowsers } from './utils/getFailedOnBrowsers.js';
import { getFlattenedTestResults } from './utils/getFlattenedTestResults.js';
function render... | modernweb-dev/web/packages/test-runner/src/reporter/reportTestsErrors.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/src/reporter/reportTestsErrors.ts",
"repo_id": "modernweb-dev",
"token_count": 1258
} | 238 |
#!/usr/bin/env node
const { readdirSync, existsSync, readFileSync, writeFileSync } = require('fs');
const getDirectories = source =>
readdirSync(source, { withFileTypes: true })
.filter(pathMeta => pathMeta.isDirectory())
.map(pathMeta => pathMeta.name);
function readPackageJsonDeps(filePath) {
if (exists... | modernweb-dev/web/scripts/lint-versions.js/0 | {
"file_path": "modernweb-dev/web/scripts/lint-versions.js",
"repo_id": "modernweb-dev",
"token_count": 1086
} | 239 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<g fill-rule="evenodd" stroke-width="1pt">
<path fill="#d52b1e" d="M0 0h640v480H0z"/>
<g fill="#fff">
<path d="M170 194.997h299.996v89.997H170z"/>
<path d="M275 89.997h89.996v299.996H275z"/>
</g>
</g>
</s... | odota/web/public/assets/images/flags/ch.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/ch.svg",
"repo_id": "odota",
"token_count": 163
} | 240 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<path fill="#c60c30" d="M0 0h640.1v480H0z"/>
<path fill="#fff" d="M205.714 0h68.57v480h-68.57z"/>
<path fill="#fff" d="M0 205.714h640.1v68.57H0z"/>
</svg>
| odota/web/public/assets/images/flags/dk.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/dk.svg",
"repo_id": "odota",
"token_count": 123
} | 241 |
<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-78.015 32h640v480h-640z"/>
</clipPath>
</defs>
<g fill-rule="evenodd" clip-path="url(#a)" transform="translate(78.02 -32)" stroke-width="0">
<path fill="... | odota/web/public/assets/images/flags/fo.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/fo.svg",
"repo_id": "odota",
"token_count": 325
} | 242 |
<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-48h640v480H0z"/>
</clipPath>
</defs>
<g fill-rule="evenodd" clip-path="url(#a)" transform="translate(0 48)" stroke-width="1pt">
<path fill="red" d="M0-1... | odota/web/public/assets/images/flags/gm.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/gm.svg",
"repo_id": "odota",
"token_count": 275
} | 243 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<g fill-rule="evenodd" stroke-width="1pt">
<path fill="#e70011" d="M0 0h639.958v248.947H0z"/>
<path fill="#fff" d="M0 240h639.958v240H0z"/>
</g>
</svg>
| odota/web/public/assets/images/flags/id.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/id.svg",
"repo_id": "odota",
"token_count": 124
} | 244 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<g fill-rule="evenodd" transform="matrix(.64143 0 0 .96773 0 0)" stroke-width="1pt">
<rect transform="matrix(.93865 0 0 .69686 0 0)" rx="0" ry="0" width="1063" height="708.66" fill="#007308"/>
<rect transform="matrix(.9386... | odota/web/public/assets/images/flags/lt.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/lt.svg",
"repo_id": "odota",
"token_count": 215
} | 245 |
<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-53.421 0h682.67v512h-682.67z"/>
</clipPath>
</defs>
<g clip-path="url(#a)" transform="translate(50.082) scale(.9375)">
<g fill-rule="evenodd" stroke-widt... | odota/web/public/assets/images/flags/se.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/se.svg",
"repo_id": "odota",
"token_count": 391
} | 246 |
<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="#de2110" d="M... | odota/web/public/assets/images/flags/tw.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/tw.svg",
"repo_id": "odota",
"token_count": 669
} | 247 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<g fill-rule="evenodd" stroke-width="1pt">
<path fill="#fff" d="M0-.001h640v480H0z"/>
<path fill="#00267f" d="M0-.001h213.337v480H0z"/>
<path fill="#f31830" d="M426.662-.001H640v480H426.662z"/>
</g>
</svg>
| odota/web/public/assets/images/flags/wf.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/wf.svg",
"repo_id": "odota",
"token_count": 147
} | 248 |
import {
isRadiant,
} from '../utility';
export default function transformPlayerMatches(fields) {
return (response) => {
// Check if player match parameters have an included account id, and add an extra variable which specifies if that player id is in the same team
if (fields.included_account_id && !Array.... | odota/web/src/actions/transformPlayerMatches.js/0 | {
"file_path": "odota/web/src/actions/transformPlayerMatches.js",
"repo_id": "odota",
"token_count": 331
} | 249 |
import Api from './Api';
export default Api;
| odota/web/src/components/Api/index.js/0 | {
"file_path": "odota/web/src/components/Api/index.js",
"repo_id": "odota",
"token_count": 17
} | 250 |
/* eslint-disable import/no-dynamic-require,global-require */
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import styled from 'styled-components';
import {
sum,
abbreviateNumber,
getOrdinal,
rankTierToString,
} from '../... | odota/web/src/components/Distributions/index.jsx/0 | {
"file_path": "odota/web/src/components/Distributions/index.jsx",
"repo_id": "odota",
"token_count": 1978
} | 251 |
/*
export default function redrawGraphs(rows, field, yAxis) {
const hasSum = rows[0] && rows[0].sum;
const hasAvg = rows[0] && rows[0].avg;
c3.generate({
bindto: '#donut',
data: {
type: 'donut',
columns: hasSum ? rows.map(row => [row[field], row.sum]) : [],
empty: { label: { text: string... | odota/web/src/components/Explorer/redrawGraphs.js/0 | {
"file_path": "odota/web/src/components/Explorer/redrawGraphs.js",
"repo_id": "odota",
"token_count": 842
} | 252 |
import React from 'react';
import PropTypes from 'prop-types';
import { Tooltip } from '@material-ui/core';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import RaisedButton from 'material-ui/RaisedButton';
import { StyledDiv, TwoLineDiv } from './Styled';
const Heading = ({
title =... | odota/web/src/components/Heading/Heading.jsx/0 | {
"file_path": "odota/web/src/components/Heading/Heading.jsx",
"repo_id": "odota",
"token_count": 884
} | 253 |
import React from 'react';
import { string, shape, func, bool, arrayOf, number } from 'prop-types';
import { connect } from 'react-redux';
import { getHeroDurations } from '../../actions';
import { HistogramGraph } from '../Visualizations';
import DurationsSkeleton from '../Skeletons/DurationsSkeleton';
class Duration... | odota/web/src/components/Hero/Durations.jsx/0 | {
"file_path": "odota/web/src/components/Hero/Durations.jsx",
"repo_id": "odota",
"token_count": 604
} | 254 |
import React from 'react';
import styled from 'styled-components';
import { connect } from 'react-redux';
import { IconOpenSource, IconStatsBars, IconWand } from '../Icons';
import constants from '../constants';
import { HomePageProps } from './Home';
const StyledDiv = styled.div`
margin: 50px auto 0;
text-align:... | odota/web/src/components/Home/Why.tsx/0 | {
"file_path": "odota/web/src/components/Home/Why.tsx",
"repo_id": "odota",
"token_count": 980
} | 255 |
import React from 'react';
export default props => (
<svg {...props} viewBox="0 0 300 300">
<circle cx="150" cy="150" r="130" stroke="black" strokeWidth="40" />
</svg>
);
| odota/web/src/components/Icons/Dot.jsx/0 | {
"file_path": "odota/web/src/components/Icons/Dot.jsx",
"repo_id": "odota",
"token_count": 68
} | 256 |
import React from 'react';
export default props => (
<svg {...props} viewBox="0 0 300 300">
<rect x="138" y="116.5" transform="matrix(0.7071 0.7071 -0.7071 0.7071 145.5402 -72.8379)" width="45.5" height="45.5" />
<rect x="52.3" y="141.6" transform="matrix(0.7071 0.7071 -0.7071 0.7071 181.0483 12.848)" width=... | odota/web/src/components/Icons/Wand.jsx/0 | {
"file_path": "odota/web/src/components/Icons/Wand.jsx",
"repo_id": "odota",
"token_count": 409
} | 257 |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Heading from '../../Heading';
import Heatmap from '../../Heatmap';
import Table from '../../Table';
import { unpackPositionData } from '../../../utility';
import mcs from '../matchColumns';
import { StyledFlexCo... | odota/web/src/components/Match/Laning/index.jsx/0 | {
"file_path": "odota/web/src/components/Match/Laning/index.jsx",
"repo_id": "odota",
"token_count": 914
} | 258 |
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { gameCoordToUV, getWardSize } from '../../../utility';
import DotaMap from '../../DotaMap';
import constants from '../../constants';
const hoverMapStyle = {
height: 300,
position: 'absolute',
bottom: '2... | odota/web/src/components/Match/Vision/LogHover.jsx/0 | {
"file_path": "odota/web/src/components/Match/Vision/LogHover.jsx",
"repo_id": "odota",
"token_count": 1128
} | 259 |
export { default } from './PiePercent';
| odota/web/src/components/PiePercent/index.js/0 | {
"file_path": "odota/web/src/components/PiePercent/index.js",
"repo_id": "odota",
"token_count": 11
} | 260 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { getPlayerItems } from '../../../../actions';
import Table from '../../../Table';
import Container from '../../../Container';
import playerItemsColumns from './playerItemsColumns';
const Items = ({
data,
e... | odota/web/src/components/Player/Pages/Items/Items.jsx/0 | {
"file_path": "odota/web/src/components/Player/Pages/Items/Items.jsx",
"repo_id": "odota",
"token_count": 553
} | 261 |
import React from 'react';
import styled from 'styled-components';
import { connect } from 'react-redux';
import { shape } from 'prop-types';
import { formatTemplateToString } from '../../../../utility';
const fastPlurality = (val, singular, plural) => (val === 1 ? singular : plural);
const formatDurationString = (se... | odota/web/src/components/Player/Pages/Totals/Card.jsx/0 | {
"file_path": "odota/web/src/components/Player/Pages/Totals/Card.jsx",
"repo_id": "odota",
"token_count": 905
} | 262 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import CircularProgress from 'material-ui/CircularProgress';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
import { postRequest }... | odota/web/src/components/Request/Request.jsx/0 | {
"file_path": "odota/web/src/components/Request/Request.jsx",
"repo_id": "odota",
"token_count": 772
} | 263 |
export { default } from './TabbedContent';
| odota/web/src/components/TabbedContent/index.js/0 | {
"file_path": "odota/web/src/components/TabbedContent/index.js",
"repo_id": "odota",
"token_count": 12
} | 264 |
import React from 'react';
import heroes from 'dotaconstants/build/heroes.json';
import { transformations, displayHeroId, subTextStyle, getTeamLogoUrl } from '../../utility';
import { TableLink } from '../Table';
import constants from '../constants';
import { TableRow, TableImage } from './TeamStyled';
import proPlayer... | odota/web/src/components/Team/teamDataColumns.jsx/0 | {
"file_path": "odota/web/src/components/Team/teamDataColumns.jsx",
"repo_id": "odota",
"token_count": 1136
} | 265 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { KDAContainer, TitleContainer, KDAPercentContainer } from './Styled';
import constants from '../../constants';
const KDA = ({
kills, deaths, assists, strings,
}) => {
const kdaSum = kills + deaths + assist... | odota/web/src/components/Visualizations/Table/KDA.jsx/0 | {
"file_path": "odota/web/src/components/Visualizations/Table/KDA.jsx",
"repo_id": "odota",
"token_count": 473
} | 266 |
{
"yes": "tak",
"no": "nie",
"abbr_thousand": " tys.",
"abbr_million": "mln",
"abbr_billion": "mld",
"abbr_trillion": "tln",
"abbr_quadrillion": "kln",
"abbr_not_available": "Niedostępne",
"abbr_pick": "P",
"abbr_win": "W",
"abbr_number": "Nr.",
"analysis_eff": "Skuteczność na linii",
"analysi... | odota/web/src/lang/pl-PL.json/0 | {
"file_path": "odota/web/src/lang/pl-PL.json",
"repo_id": "odota",
"token_count": 22988
} | 267 |
export default (type, initialData) => (state = {
loading: true,
data: initialData || [],
}, action) => {
switch (action.type) {
case `REQUEST/${type}`:
return {
...state,
loading: true,
};
case `OK/${type}`:
return {
...state,
loading: false,
data:... | odota/web/src/reducers/reducer.js/0 | {
"file_path": "odota/web/src/reducers/reducer.js",
"repo_id": "odota",
"token_count": 315
} | 268 |
{
"scenarios": {
"itemCost": 1400,
"timings": [
450,
600,
720,
900,
1200,
1500,
1800
],
"gameDurationBucket": [
900,
1800,
2700,
3600,
5400
],
"teamScenariosQueryParams": [
"pos_chat_1min",
"neg_chat_1min",
"courier_kill",
"first_blood"
]
},
"banner": nul... | odota/web/testcafe/cachedAjax/metadata_.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/metadata_.json",
"repo_id": "odota",
"token_count": 220
} | 269 |
{
"obs": {
"68": {
"130": 3,
"132": 4
},
"72": {
"114": 4
},
"74": {
"98": 1,
"114": 1,
"118": 1,
"152": 1,
"156": 2
},
"76": {
"80": 2,
"82": 1,
"97": 1,
"98": 1,
"100": 1,
"102": 2,
"114": 1,
"126": 1,
"128": 2,
"130": 1,
"144": 1,
"148": 5,
... | odota/web/testcafe/cachedAjax/players_101695162_wardmap_.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/players_101695162_wardmap_.json",
"repo_id": "odota",
"token_count": 26024
} | 270 |
[
{
"match_id": "4107465989",
"start_time": "1536430481",
"hero_id": "53",
"score": "38242"
},
{
"match_id": "4108053928",
"start_time": "1536464340",
"hero_id": "56",
"score": "38068"
},
{
"match_id": "4098859341",
"start_time": "1536008072",
"hero_id": "56",
"score": "37792"
},
{
"mat... | odota/web/testcafe/cachedAjax/records_tower_damage_.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/records_tower_damage_.json",
"repo_id": "odota",
"token_count": 5577
} | 271 |
FROM golang:latest
RUN rm /bin/sh && ln -s /bin/bash /bin/sh && \
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
# Node
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 16.13.2
RUN mkdir -p $NVM_DIR && \
curl --silent -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install... | openmultiplayer/web/Dockerfile/0 | {
"file_path": "openmultiplayer/web/Dockerfile",
"repo_id": "openmultiplayer",
"token_count": 367
} | 272 |
package server
import (
"testing"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
)
func TestAddressFromString(t *testing.T) {
type args struct {
address string
}
tests := []struct {
name string
args args
wanrAddr string
wantErrs []string
}{
{"valid", args{"192.168.1.2"}, "sam... | openmultiplayer/web/app/resources/server/address_test.go/0 | {
"file_path": "openmultiplayer/web/app/resources/server/address_test.go",
"repo_id": "openmultiplayer",
"token_count": 493
} | 273 |
package scraper
import (
"context"
"sync"
"time"
"github.com/openmultiplayer/web/app/resources/server"
"github.com/openmultiplayer/web/app/services/queryer"
)
var _ Scraper = &PooledScraper{}
type PooledScraper struct {
Q queryer.Queryer
}
func NewPooledScraper(q queryer.Queryer) Scraper {
return &PooledScr... | openmultiplayer/web/app/services/scraper/pooled.go/0 | {
"file_path": "openmultiplayer/web/app/services/scraper/pooled.go",
"repo_id": "openmultiplayer",
"token_count": 426
} | 274 |
package metrics
import (
"github.com/go-chi/chi"
"github.com/prometheus/client_golang/prometheus/promhttp"
"go.uber.org/fx"
)
func Build() fx.Option {
return fx.Options(
fx.Invoke(func(
r chi.Router,
) {
rtr := chi.NewRouter()
r.Mount("/metrics", rtr)
rtr.Handle("/", promhttp.Handler())
}),
)
... | openmultiplayer/web/app/transports/api/metrics/api.go/0 | {
"file_path": "openmultiplayer/web/app/transports/api/metrics/api.go",
"repo_id": "openmultiplayer",
"token_count": 152
} | 275 |
package users
import (
"errors"
"net/http"
"os"
"go.uber.org/zap"
"github.com/openmultiplayer/web/internal/web"
)
type devParams struct {
ID string `qstring:"id"`
Secret string `qstring:"secret"`
}
func (s *service) dev(w http.ResponseWriter, r *http.Request) {
secret := os.Getenv("DEV_LOGIN_SECRET")
... | openmultiplayer/web/app/transports/api/users/h_dev.go/0 | {
"file_path": "openmultiplayer/web/app/transports/api/users/h_dev.go",
"repo_id": "openmultiplayer",
"token_count": 376
} | 276 |
# SA-MP Wiki and open.mp Documentation
Welcome to the SA-MP/open.mp wiki, maintained by the open.mp team and wider SA-MP community!
This site aims to provide an easily accessible, easy to contribute to documentation source for SA-MP and open.mp.
## The SA-MP wiki is gone
Unfortunately, the SA-MP wiki was taken offl... | openmultiplayer/web/docs/index.md/0 | {
"file_path": "openmultiplayer/web/docs/index.md",
"repo_id": "openmultiplayer",
"token_count": 311
} | 277 |
---
title: OnNPCExitVehicle
description: This callback is called when a NPC leaves a vehicle.
tags: ["npc"]
---
## Description
This callback is called when a NPC leaves a vehicle.
## Examples
```c
public OnNPCExitVehicle()
{
print("The NPC left the vehicle");
return 1;
}
```
## Related Callbacks
The foll... | openmultiplayer/web/docs/scripting/callbacks/OnNPCExitVehicle.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnNPCExitVehicle.md",
"repo_id": "openmultiplayer",
"token_count": 154
} | 278 |
---
title: OnPlayerDisconnect
description: This callback is called when a player disconnects from the server.
tags: ["player"]
---
## Description
This callback is called when a player disconnects from the server.
| Name | Description |
| -------- | -------------------------... | openmultiplayer/web/docs/scripting/callbacks/OnPlayerDisconnect.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerDisconnect.md",
"repo_id": "openmultiplayer",
"token_count": 964
} | 279 |
---
title: OnPlayerLeaveGangZone
description: This callback is called when a player exited a gangzone
tags: ["player", "gangzone"]
---
<VersionWarn name='callback' version='omp v1.1.0.2612' />
## Description
This callback is called when a player exited a gangzone
| Name | Description ... | openmultiplayer/web/docs/scripting/callbacks/OnPlayerLeaveGangZone.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerLeaveGangZone.md",
"repo_id": "openmultiplayer",
"token_count": 413
} | 280 |
---
title: OnPlayerStreamOut
description: This callback is called when a player is streamed out from some other player's client.
tags: ["player"]
---
## Description
This callback is called when a player is streamed out from some other player's client.
| Name | Description |... | openmultiplayer/web/docs/scripting/callbacks/OnPlayerStreamOut.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerStreamOut.md",
"repo_id": "openmultiplayer",
"token_count": 401
} | 281 |
---
title: AllowInteriorWeapons
description: Toggle whether the usage of weapons in interiors is allowed or not.
tags: []
---
## Description
Toggle whether the usage of weapons in interiors is allowed or not.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/AllowInteriorWeapons.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/AllowInteriorWeapons.md",
"repo_id": "openmultiplayer",
"token_count": 446
} | 282 |
---
title: AttachPlayerObjectToObject
description: You can use this function to attach player-objects to other player-objects.
tags: ["player", "object", "playerobject"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
You can use this function to attach player-objects to other player-objects. The object... | openmultiplayer/web/docs/scripting/functions/AttachPlayerObjectToObject.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/AttachPlayerObjectToObject.md",
"repo_id": "openmultiplayer",
"token_count": 1022
} | 283 |
---
title: ChangeVehiclePaintjob
description: Change a vehicle's paintjob.
tags: ["vehicle"]
---
## Description
Change a vehicle's paintjob (for plain colors see [ChangeVehicleColor](ChangeVehicleColor)).
| Name | Description |
| -------... | openmultiplayer/web/docs/scripting/functions/ChangeVehiclePaintjob.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/ChangeVehiclePaintjob.md",
"repo_id": "openmultiplayer",
"token_count": 540
} | 284 |
---
title: CreatePlayerGangZone
description: Create player gangzone
tags: ["player", "gangzone", "playergangzone"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Create player gangzone. This can be used as a way around the global gangzone limit.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/CreatePlayerGangZone.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/CreatePlayerGangZone.md",
"repo_id": "openmultiplayer",
"token_count": 1123
} | 285 |
---
title: DetachTrailerFromVehicle
description: Detach the connection between a vehicle and its trailer, if any.
tags: ["vehicle"]
---
## Description
Detach the connection between a vehicle and its trailer, if any.
| Name | Description |
| --------- | -------------------------- |
| vehicleid | I... | openmultiplayer/web/docs/scripting/functions/DetachTrailerFromVehicle.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/DetachTrailerFromVehicle.md",
"repo_id": "openmultiplayer",
"token_count": 230
} | 286 |
---
title: EnableTirePopping
description: With this function you can enable or disable tire popping.
tags: []
---
## Description
With this function you can enable or disable tire popping.
| Name | Description |
| ----------- | --------------------------------------------... | openmultiplayer/web/docs/scripting/functions/EnableTirePopping.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/EnableTirePopping.md",
"repo_id": "openmultiplayer",
"token_count": 296
} | 287 |
---
title: GangZoneGetPos
description: Get the position of a gangzone, represented by minX, minY, maxX, maxY coordinates
tags: ["player", "gangzone"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the position of a gangzone, represented by minX, minY, maxX, maxY coordinates.
| Name | Descri... | openmultiplayer/web/docs/scripting/functions/GangZoneGetPos.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GangZoneGetPos.md",
"repo_id": "openmultiplayer",
"token_count": 823
} | 288 |
---
title: GetActorFacingAngle
description: Get the facing angle of an actor.
tags: ["actor"]
---
<VersionWarn version='SA-MP 0.3.7' />
## Description
Get the facing angle of an actor.
| Name | Description |
| ------------ | ---... | openmultiplayer/web/docs/scripting/functions/GetActorFacingAngle.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetActorFacingAngle.md",
"repo_id": "openmultiplayer",
"token_count": 363
} | 289 |
---
title: GetGameText
description: Returns all the information on the given game text style.
tags: ["player"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Returns all the information on the given game text style.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/GetGameText.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetGameText.md",
"repo_id": "openmultiplayer",
"token_count": 793
} | 290 |
---
title: GetPickupModel
description: Gets the model ID of a pickup.
tags: ["pickup"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the model ID of a pickup.
| Name | Description |
|----------|----------------------------------------------|
| pickupid | The ... | openmultiplayer/web/docs/scripting/functions/GetPickupModel.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPickupModel.md",
"repo_id": "openmultiplayer",
"token_count": 603
} | 291 |
---
title: GetPlayerAnimationFlags
description: Get the player animation flags.
tags: ["player", "animation"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the player animation flags.
| Name | Description |
| -------- | ---------------------------------------- |
|... | openmultiplayer/web/docs/scripting/functions/GetPlayerAnimationFlags.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerAnimationFlags.md",
"repo_id": "openmultiplayer",
"token_count": 621
} | 292 |
---
title: GetPlayerCheckpoint
description: Get the location of the current checkpoint.
tags: ["player", "checkpoint"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the location of the current checkpoint.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/GetPlayerCheckpoint.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerCheckpoint.md",
"repo_id": "openmultiplayer",
"token_count": 734
} | 293 |
---
title: GetPlayerIp
description: Get the specified player's IP address and store it in a string.
tags: ["player", "ip address"]
---
## Description
Get the specified player's IP address and store it in a string.
| Name | Description |
| --------... | openmultiplayer/web/docs/scripting/functions/GetPlayerIp.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerIp.md",
"repo_id": "openmultiplayer",
"token_count": 768
} | 294 |
---
title: GetPlayerObjectModel
description: Retrieve the model ID of a player-object.
tags: ["player", "object", "playerobject"]
---
<VersionWarn version='SA-MP 0.3.7' />
## Description
Retrieve the model ID of a player-object.
| Name | Description |
| --------... | openmultiplayer/web/docs/scripting/functions/GetPlayerObjectModel.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerObjectModel.md",
"repo_id": "openmultiplayer",
"token_count": 378
} | 295 |
---
title: GetPlayerRotationQuat
description: Returns a player's rotation on all axes as a quaternion.
tags: ["player"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Returns a player's rotation on all axes as a quaternion.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/GetPlayerRotationQuat.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerRotationQuat.md",
"repo_id": "openmultiplayer",
"token_count": 579
} | 296 |
---
title: GetPlayerTime
description: Get the player's current game time.
tags: ["player"]
---
## Description
Get the player's current game time. Set by [SetWorldTime](SetWorldTime), or by the game automatically if [TogglePlayerClock](TogglePlayerClock) is used.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/GetPlayerTime.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerTime.md",
"repo_id": "openmultiplayer",
"token_count": 404
} | 297 |
---
title: GetRunningTimers
description: Get the running timers.
tags: []
---
:::warning
This function is deprecated, see [CountRunningTimers](CountRunningTimers).
:::
## Description
Get the running timers. ([SetTimer](SetTimer) & [SetTimerEx](SetTimerEx))
## Returns
Returns the amount of running timers.
## Exa... | openmultiplayer/web/docs/scripting/functions/GetRunningTimers.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetRunningTimers.md",
"repo_id": "openmultiplayer",
"token_count": 172
} | 298 |
---
title: GetVehicleCab
description: Get the ID of the cab attached to a vehicle.
tags: ["vehicle"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the ID of the cab attached to a vehicle.
| Name | Description |
| --------- | ----------------------------------... | openmultiplayer/web/docs/scripting/functions/GetVehicleCab.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetVehicleCab.md",
"repo_id": "openmultiplayer",
"token_count": 224
} | 299 |
---
title: GetVehicleModelsUsed
description: Get the number of used vehicle models on the server.
tags: ["vehicle"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the number of used vehicle models on the server.
## Examples
```c
public OnGameModeInit()
{
printf("Used vehicle models: %d", GetV... | openmultiplayer/web/docs/scripting/functions/GetVehicleModelsUsed.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetVehicleModelsUsed.md",
"repo_id": "openmultiplayer",
"token_count": 144
} | 300 |
---
title: GetVehicleTower
description: Get the ID of the cab attached to a vehicle.
tags: ["vehicle"]
---
:::warning
This function is deprecated, See [GetVehicleCab](GetVehicleCab).
:::
## Description
Get the ID of the cab attached to a vehicle.
| Name | Description |
| ----... | openmultiplayer/web/docs/scripting/functions/GetVehicleTower.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetVehicleTower.md",
"repo_id": "openmultiplayer",
"token_count": 234
} | 301 |
---
title: HasPlayerObjectCameraCollision
description: Checks if a player-object has camera collision enabled. (SetPlayerObjectNoCameraCollision)
tags: ["player", "object", "playerobject"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Checks if a player-object has camera collision enabled. ([SetPlayer... | openmultiplayer/web/docs/scripting/functions/HasPlayerObjectCameraCollision.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/HasPlayerObjectCameraCollision.md",
"repo_id": "openmultiplayer",
"token_count": 362
} | 302 |
---
title: IsGangZoneFlashingForPlayer
description: Check if the gangzone is flashing for player
tags: ["player", "gangzone"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Check if the gangzone is flashing for player.
| Name | Description |
| ----------- | -------... | openmultiplayer/web/docs/scripting/functions/IsGangZoneFlashingForPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/IsGangZoneFlashingForPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 527
} | 303 |
---
title: IsPlayerCuffed
description: Checks if the player special action is cuffed.
tags: ["player"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Checks if the player special action is cuffed.
| Name | Description |
| -------- | -----------------... | openmultiplayer/web/docs/scripting/functions/IsPlayerCuffed.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/IsPlayerCuffed.md",
"repo_id": "openmultiplayer",
"token_count": 247
} | 304 |
---
title: IsPlayerRaceCheckpointActive
description: Check if the player currently has a race checkpoint visible.
tags: ["player", "checkpoint", "racecheckpoint"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Check if the player currently has a race checkpoint visible.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/IsPlayerRaceCheckpointActive.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/IsPlayerRaceCheckpointActive.md",
"repo_id": "openmultiplayer",
"token_count": 298
} | 305 |
---
title: IsValidNickName
description: Checks if a nick name is valid.
tags: []
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Checks if a nick name is valid.
| Name | Description |
| ------------ | ----------------------------------------------... | openmultiplayer/web/docs/scripting/functions/IsValidNickName.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/IsValidNickName.md",
"repo_id": "openmultiplayer",
"token_count": 386
} | 306 |
---
title: IsVehicleStreamedIn
description: Checks if a vehicle is streamed in for a player.
tags: ["vehicle"]
---
## Description
Checks if a vehicle is streamed in for a player. Only nearby vehicles are streamed in (visible) for a player.
| Name | Description |
| ----------- | -----------... | openmultiplayer/web/docs/scripting/functions/IsVehicleStreamedIn.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/IsVehicleStreamedIn.md",
"repo_id": "openmultiplayer",
"token_count": 469
} | 307 |
---
title: NetStats_MessagesSent
description: Gets the number of messages the server has sent to the player.
tags: ["network monitoring"]
---
## Description
Gets the number of messages the server has sent to the player.
| Name | Description |
| -------- | --------------------------... | openmultiplayer/web/docs/scripting/functions/NetStats_MessagesSent.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/NetStats_MessagesSent.md",
"repo_id": "openmultiplayer",
"token_count": 587
} | 308 |
---
title: PlayerSpectateVehicle
description: Sets a player to spectate another vehicle.
tags: ["player", "vehicle"]
---
## Description
Sets a player to spectate another vehicle. Their camera will be attached to the vehicle as if they are driving it.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/PlayerSpectateVehicle.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/PlayerSpectateVehicle.md",
"repo_id": "openmultiplayer",
"token_count": 673
} | 309 |
---
title: PlayerTextDrawLetterSize
description: Sets the width and height of the letters in a player-textdraw.
tags: ["player", "textdraw", "playertextdraw"]
---
## Description
Sets the width and height of the letters in a player-textdraw.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/PlayerTextDrawLetterSize.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/PlayerTextDrawLetterSize.md",
"repo_id": "openmultiplayer",
"token_count": 1008
} | 310 |
---
title: SendClientMessage
description: This function sends a message to a specific player with a chosen color in the chat.
tags: []
---
## Description
This function sends a message to a specific player with a chosen color in the chat. The whole line in the chatbox will be in the set color unless color embedding is... | openmultiplayer/web/docs/scripting/functions/SendClientMessage.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SendClientMessage.md",
"repo_id": "openmultiplayer",
"token_count": 786
} | 311 |
---
title: SetActorPos
description: Set the position of an actor.
tags: ["actor"]
---
<VersionWarn version='SA-MP 0.3.7' />
## Description
Set the position of an actor.
| Name | Description |
| ------- | ----------------------------------------------------... | openmultiplayer/web/docs/scripting/functions/SetActorPos.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetActorPos.md",
"repo_id": "openmultiplayer",
"token_count": 508
} | 312 |
---
title: SetObjectNoCameraCollision
description: Disable collisions between players' cameras and the specified object.
tags: ["object", "camera"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Disable collisions between players' cameras and the specified object.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/SetObjectNoCameraCollision.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetObjectNoCameraCollision.md",
"repo_id": "openmultiplayer",
"token_count": 419
} | 313 |
---
title: SetPlayerArmedWeapon
description: Sets which weapon (that a player already has) the player is holding.
tags: ["player"]
---
## Description
Sets which weapon (that a player already has) the player is holding.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/SetPlayerArmedWeapon.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetPlayerArmedWeapon.md",
"repo_id": "openmultiplayer",
"token_count": 702
} | 314 |
---
title: SetPlayerMarkerForPlayer
description: Change the colour of a player's nametag and radar blip for another player.
tags: ["player"]
---
## Description
Change the colour of a player's nametag and radar blip for another player.
| Name | Description |
| ... | openmultiplayer/web/docs/scripting/functions/SetPlayerMarkerForPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetPlayerMarkerForPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 590
} | 315 |
---
title: SetPlayerScore
description: Set a player's score.
tags: ["player"]
---
## Description
Set a player's score. Players' scores are shown in the scoreboard (shown by holding the TAB key).
| Name | Description |
| -------- | ----------------------------------------- |
| player... | openmultiplayer/web/docs/scripting/functions/SetPlayerScore.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetPlayerScore.md",
"repo_id": "openmultiplayer",
"token_count": 316
} | 316 |
---
title: SetServerRuleFlags
description: Sets the flags of a server rule.
tags: ["rule"]
---
<VersionWarn version='omp v1.1.0.2612' />
:::warning
This function has not yet been implemented.
:::
## Description
Sets the flags of a server rule.
## Parameters
| Name | Description |
... | openmultiplayer/web/docs/scripting/functions/SetServerRuleFlags.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetServerRuleFlags.md",
"repo_id": "openmultiplayer",
"token_count": 348
} | 317 |
---
title: SetVehiclePos
description: Set a vehicle's position.
tags: ["vehicle"]
---
## Description
Set a vehicle's position
| Name | Description |
| --------- | -------------------------------------------- |
| vehicleid | Vehicle ID that you want set new position. |
| Float:... | openmultiplayer/web/docs/scripting/functions/SetVehiclePos.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetVehiclePos.md",
"repo_id": "openmultiplayer",
"token_count": 373
} | 318 |
---
title: ShowPlayerNameTagForPlayer
description: This functions allows you to toggle the drawing of player nametags, healthbars and armor bars which display above their head.
tags: ["player"]
---
## Description
This functions allows you to toggle the drawing of player nametags, healthbars and armor bars which displ... | openmultiplayer/web/docs/scripting/functions/ShowPlayerNameTagForPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/ShowPlayerNameTagForPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 642
} | 319 |
---
title: TextDrawSetPreviewRot
description: Sets the rotation and zoom of a 3D model preview textdraw.
tags: ["textdraw"]
---
## Description
Sets the rotation and zoom of a 3D model preview textdraw.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/TextDrawSetPreviewRot.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/TextDrawSetPreviewRot.md",
"repo_id": "openmultiplayer",
"token_count": 1150
} | 320 |
---
title: TogglePlayerGhostMode
description: Toggle player's ghost mode.
tags: ["player"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Toggle player's ghost mode.
Ghost mode disables the collision between player models.
| Name | Description |
| ----------- ... | openmultiplayer/web/docs/scripting/functions/TogglePlayerGhostMode.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/TogglePlayerGhostMode.md",
"repo_id": "openmultiplayer",
"token_count": 330
} | 321 |
---
title: argindex
description: Get the name of the argument at the given index after --.
tags: ["arguments", "args"]
---
## Description
Get the name of the argument at the given index after **--**.
| Name | Description |
| --------------------- | ---------------... | openmultiplayer/web/docs/scripting/functions/argindex.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/argindex.md",
"repo_id": "openmultiplayer",
"token_count": 399
} | 322 |
---
title: fclose
description: Closes a file.
tags: ["file management"]
---
<LowercaseNote />
## Description
Closes a file. Files should always be closed when the script no longer needs them (after reading/writing).
| Name | Description |
| ----------- | ------------... | openmultiplayer/web/docs/scripting/functions/fclose.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/fclose.md",
"repo_id": "openmultiplayer",
"token_count": 747
} | 323 |
---
title: floatmul
description: Multiplies two floats with each other.
tags: ["math", "floating-point"]
---
<LowercaseNote />
## Description
Multiplies two floats with each other.
| Name | Description |
| ----------- | ------------------------------------------------- |... | openmultiplayer/web/docs/scripting/functions/floatmul.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/floatmul.md",
"repo_id": "openmultiplayer",
"token_count": 414
} | 324 |
---
title: fstat
description: Return the size and the timestamp of a file.
tags: ["file management"]
---
<VersionWarn version='omp v1.1.0.2612' />
<LowercaseNote />
## Description
Return the size and the timestamp of a file.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/fstat.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/fstat.md",
"repo_id": "openmultiplayer",
"token_count": 1725
} | 325 |
---
title: min
description: Return the lowest of two numbers.
tags: ["core"]
---
<LowercaseNote />
## Description
Function used to compare the values.
| Name | Description |
| ------ | ----------------------- |
| value1 | Value 1 (a) to compare. |
| value1 | Value 2 (b) to compare. |
## Returns
The ... | openmultiplayer/web/docs/scripting/functions/min.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/min.md",
"repo_id": "openmultiplayer",
"token_count": 269
} | 326 |
---
title: strfind
description: Search for a sub string in a string.
tags: ["string"]
---
<LowercaseNote />
## Description
Search for a sub string in a string.
| Name | Description |
| -------------... | openmultiplayer/web/docs/scripting/functions/strfind.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/strfind.md",
"repo_id": "openmultiplayer",
"token_count": 762
} | 327 |
---
title: "Keywords: Initialisers"
---
## `const`
```c
new const
MY_CONSTANT[] = {1, 2, 3};
```
const is not widerly used however it declares a variable which can not be modified by code. There are a few uses for this - functions with const array parameters can sometimes be compiled more efficiently or you may... | openmultiplayer/web/docs/scripting/language/Initialisers.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/language/Initialisers.md",
"repo_id": "openmultiplayer",
"token_count": 7348
} | 328 |
# Proposed function library
---
Since PAWN is targeted as an application extension language, most of the
functions that are accessible to PAWN programs will be specific to the
host application. Nevertheless, a small set of functions may prove useful
to many environments.
### • Core functions
The “core” module c... | openmultiplayer/web/docs/scripting/language/reference/10-Proposed-function-library.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/language/reference/10-Proposed-function-library.md",
"repo_id": "openmultiplayer",
"token_count": 13791
} | 329 |
---
title: HTTP Error Response Codes
description: HTTP error response codes.
---
:::note
These codes compliment ordinary [HTTP](../functions/HTTP) response codes returned in 'response_code'
:::
| Code | Error | Description ... | openmultiplayer/web/docs/scripting/resources/http-error-response-codes.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/resources/http-error-response-codes.md",
"repo_id": "openmultiplayer",
"token_count": 1526
} | 330 |
---
title: Panel States
description: Information about byte size and its corresponding panel state bits.
---
:::note
Panel states are used by natives such as [GetVehicleDamageStatus](../functions/GetVehicleDamageStatus) and [UpdateVehicleDamageStatus](../functions/UpdateVehicleDamageStatus).
:::
## Which nibble sto... | openmultiplayer/web/docs/scripting/resources/panelstates.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/resources/panelstates.md",
"repo_id": "openmultiplayer",
"token_count": 882
} | 331 |
---
title: Scripting Basics
description: A short tutorial guiding you through the basics of the Pawn language and SA-MP/open.mp APIs.
sidebar_label: Scripting Basics
---
Below is an example of possibly the most basic script you can write:
```c
#include <a_samp>
main()
{
print("Hello World!");
return 1;
}
```... | openmultiplayer/web/docs/scripting/resources/start.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/resources/start.md",
"repo_id": "openmultiplayer",
"token_count": 6832
} | 332 |
---
title: OnVehiclePaintjob
description: يتم إستدعاء هذا الكالباك عند تغيير طلاء السيارة في مرآب التعديل
tags: ["vehicle"]
---
<div dir="rtl" style={{ textAlign: "right" }}>
## الوصف
يتم إستدعاء هذا الكالباك عند تغيير طلاء السيارة في مرآب التعديل
| Name | Description ... | openmultiplayer/web/docs/translations/ar/scripting/callbacks/OnVehiclePaintjob.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/ar/scripting/callbacks/OnVehiclePaintjob.md",
"repo_id": "openmultiplayer",
"token_count": 1373
} | 333 |
---
title: OnClientMessage
description: Ovaj callback se poziva kada god NPC vidi ClientMessage.
tags: []
---
## Deskripcija
Ovaj callback se poziva kada god NPC vidi ClientMessage (poruku poslanu od game-klijenta). Ovo će biti svaki put kada `SendClientMessageToAll` funkcija bude pozvana i svaki put kada funkcija `S... | openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnClientMessage.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnClientMessage.md",
"repo_id": "openmultiplayer",
"token_count": 378
} | 334 |
---
title: OnPlayerCommandText
description: Ovaj callback je pozvan kada igrač unese komandu u chat prozoru njegovog klijenta.
tags: ["player"]
---
## Deskripcija
Ovaj callback je pozvan kada igrač unese komandu u chat prozoru njegovog klijenta. Komande su sve ono što počinje sa krivom crtom u desno, npr. /help.
| I... | openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnPlayerCommandText.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnPlayerCommandText.md",
"repo_id": "openmultiplayer",
"token_count": 720
} | 335 |
---
title: OnPlayerLeaveCheckpoint
description: Ovaj callback je pozvan kada igrač napusti checkpoint koji mu je postavljen sa SetPlayerCheckpoint.
tags: ["player", "checkpoint"]
---
## Deskripcija
Ovaj callback je pozvan kada igrač napusti checkpoint koji mu je postavljen sa SetPlayerCheckpoint. Samo jedan checkpoin... | openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnPlayerLeaveCheckpoint.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnPlayerLeaveCheckpoint.md",
"repo_id": "openmultiplayer",
"token_count": 520
} | 336 |
---
title: OnPlayerWeaponShot
description: Ovaj callback je pozvan kada igrač ispali hitac iz oružja.
tags: ["player"]
---
## Deskripcija
Ovaj callback je pozvan kada igrač ispali hitac iz oružja. Samo oružja sa mecima su podržana. Drive-by je podržan samo od strane putnika (ne vozačev drive-by, i ne hice koje pucate... | openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnPlayerWeaponShot.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnPlayerWeaponShot.md",
"repo_id": "openmultiplayer",
"token_count": 1783
} | 337 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.