text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
import aw from './AccountWidget';
export default aw;
| odota/web/src/components/AccountWidget/index.js/0 | {
"file_path": "odota/web/src/components/AccountWidget/index.js",
"repo_id": "odota",
"token_count": 15
} | 251 |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
// import FlatButton from 'material-ui/FlatButton';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
const ButtonGarden = ({
buttonNames, selectedButton, onClick, strin... | odota/web/src/components/ButtonGarden/index.jsx/0 | {
"file_path": "odota/web/src/components/ButtonGarden/index.jsx",
"repo_id": "odota",
"token_count": 325
} | 252 |
import React from 'react';
import TextField from 'material-ui/TextField';
import debounce from 'lodash/fp/debounce';
import editDistance from './editDistance';
const ExplorerOmnibox = (context, expandedFields) => (<TextField
style={{ display: 'none' }}
floatingLabelText="Omnibox"
onChange={debounce((event, value... | odota/web/src/components/Explorer/ExplorerOmnibox.jsx/0 | {
"file_path": "odota/web/src/components/Explorer/ExplorerOmnibox.jsx",
"repo_id": "odota",
"token_count": 794
} | 253 |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import AutoComplete from 'material-ui/AutoComplete';
import querystring from 'querystring';
import ChipList from './ChipList';
import constants from '../constants';
const { colorRed, colorBlue } = constants;
const ad... | odota/web/src/components/Form/FormField.jsx/0 | {
"file_path": "odota/web/src/components/Form/FormField.jsx",
"repo_id": "odota",
"token_count": 2349
} | 254 |
import React from 'react';
import styled from 'styled-components';
import aghsDesc from 'dotaconstants/build/aghs_desc.json';
import propTypes from 'prop-types';
import AghsTooltip from '../AghsTooltip';
import constants from '../constants';
const Wrapper = styled.div`
background: linear-gradient(to bottom, ${consta... | odota/web/src/components/Hero/AghanimUpgrades.jsx/0 | {
"file_path": "odota/web/src/components/Hero/AghanimUpgrades.jsx",
"repo_id": "odota",
"token_count": 600
} | 255 |
import React from 'react';
import { arrayOf, shape, bool, func, string, oneOfType } from 'prop-types';
import { connect } from 'react-redux';
import Table, { TableLink } from '../Table';
import RecentSkeleton from '../Skeletons/RecentSkeleton';
import ErrorBox from '../Error/ErrorBox';
import { getHeroRecentGames } fro... | odota/web/src/components/Hero/Recent.jsx/0 | {
"file_path": "odota/web/src/components/Hero/Recent.jsx",
"repo_id": "odota",
"token_count": 1405
} | 256 |
import React from 'react';
export default props => (
<svg {...props} viewBox="0 0 300 300">
<path
d="M64.7,103.9l44.9-44.9c0.6-0.6,0.6-1.6,0-2.2L96.1,43.5c-0.6-0.6-1.6-0.6-2.2,0l-6.9,6.9
c-0.6,0.6-1.6,0.6-2.2,0L48.4,13.8C30.1-4.5,28.9-3.4,15.6,10C2.2,23.4,1.1,24.5,19.4,42.8L56,79.4c0.6,0.6,0.6,1.6,0,... | odota/web/src/components/Icons/Battle.jsx/0 | {
"file_path": "odota/web/src/components/Icons/Battle.jsx",
"repo_id": "odota",
"token_count": 1721
} | 257 |
import React from 'react';
export default props => (
<svg {...props} viewBox="0 0 300 300">
<path
d="M278.6,42.9c0-23.6-19.2-42.9-42.9-42.9s-42.9,19.2-42.9,42.9c0,15.8,8.6,29.7,21.4,37.1v35.4L150,147.5
l-64.3-32.1V79.9c12.8-7.4,21.4-21.3,21.4-37.1C107.1,19.2,87.9,0,64.3,0S21.4,19.2,21.4,42.9c0,15.8,8... | odota/web/src/components/Icons/OpenSource.jsx/0 | {
"file_path": "odota/web/src/components/Icons/OpenSource.jsx",
"repo_id": "odota",
"token_count": 662
} | 258 |
export default [
// Radiant
{
id: 't4br',
style: { top: '82%', left: '12%' },
},
{
id: 't4tr',
style: { top: '79%', left: '8%' },
},
{
id: 't3br',
style: { top: '83.5%', left: '23%' },
},
{
id: 't2br',
style: { top: '85%', left: '46%' },
},
{
id: 't1br',
style... | odota/web/src/components/Match/BuildingMap/buildingData.js/0 | {
"file_path": "odota/web/src/components/Match/BuildingMap/buildingData.js",
"repo_id": "odota",
"token_count": 1372
} | 259 |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import constants from '../../constants';
import { IMAGESIZE_ENUM } from '../../../utility';
import HeroImage from './../../Visualizations/HeroImage';
const Styled = styled.div`
... | odota/web/src/components/Match/Overview/PicksBans.jsx/0 | {
"file_path": "odota/web/src/components/Match/Overview/PicksBans.jsx",
"repo_id": "odota",
"token_count": 1101
} | 260 |
import React from 'react';
import findLast from 'lodash/fp/findLast';
import { Tooltip } from '@material-ui/core';
import heroes from 'dotaconstants/build/heroes.json';
import orderTypes from 'dotaconstants/build/order_types.json';
import itemIds from 'dotaconstants/build/item_ids.json';
import buffs from 'dotaconstant... | odota/web/src/components/Match/matchColumns.jsx/0 | {
"file_path": "odota/web/src/components/Match/matchColumns.jsx",
"repo_id": "odota",
"token_count": 27484
} | 261 |
import { CardTitle } from 'material-ui/Card';
import styled from 'styled-components';
export const PlayerStatsCard = styled(CardTitle)`
display: inline-block;
padding: 0 !important;
margin-right: 25px;
margin-top: 15px;
& span:last-child {
font-size: 24px !important;
color: rgba(255, 255, 255, 0.87)... | odota/web/src/components/Player/Header/Styled.jsx/0 | {
"file_path": "odota/web/src/components/Player/Header/Styled.jsx",
"repo_id": "odota",
"token_count": 215
} | 262 |
import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import heroes from 'dotaconstants/build/heroes.json';
import {
isRadiant,
sum,
formatSeconds,
abbreviateNumber,
} from '../../../../utility';
import { MAX_MATCHES_ROWS }... | odota/web/src/components/Player/Pages/Overview/Summary.jsx/0 | {
"file_path": "odota/web/src/components/Player/Pages/Overview/Summary.jsx",
"repo_id": "odota",
"token_count": 1692
} | 263 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { withRouter } from 'react-router-dom';
import Long from 'long';
import {
getPlayer,
getPlayerWinLoss,
} from '../../actions';
import TabBar from '../TabBar';
import Spinne... | odota/web/src/components/Player/Player.jsx/0 | {
"file_path": "odota/web/src/components/Player/Player.jsx",
"repo_id": "odota",
"token_count": 1316
} | 264 |
import Scenarios from './Scenarios';
export default Scenarios;
| odota/web/src/components/Scenarios/index.js/0 | {
"file_path": "odota/web/src/components/Scenarios/index.js",
"repo_id": "odota",
"token_count": 20
} | 265 |
import React from 'react';
import PropTypes from 'prop-types';
import CircularProgress from 'material-ui/CircularProgress';
const Spinner = ({ size = 59.5, color = '#00BCD4' }) => (
<div style={{ textAlign: 'center' }}>
<CircularProgress size={Math.max(size, 4)} color={color} />
</div>
);
Spinner.propTypes = {... | odota/web/src/components/Spinner/Spinner.jsx/0 | {
"file_path": "odota/web/src/components/Spinner/Spinner.jsx",
"repo_id": "odota",
"token_count": 138
} | 266 |
export { default } from './Table';
export { default as TableLink } from './TableLink';
| odota/web/src/components/Table/index.js/0 | {
"file_path": "odota/web/src/components/Table/index.js",
"repo_id": "odota",
"token_count": 24
} | 267 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import {
XAxis,
YAxis,
Tooltip,
Line,
LineChart,
CartesianGrid,
Legend,
Label, ResponsiveContainer, Brush,
} from 'recharts';
import styled from 'styled-components';
import constants from '../../constan... | odota/web/src/components/Visualizations/Graph/MMRGraph.jsx/0 | {
"file_path": "odota/web/src/components/Visualizations/Graph/MMRGraph.jsx",
"repo_id": "odota",
"token_count": 1004
} | 268 |
import Wordcloud from './Wordcloud';
export default Wordcloud;
| odota/web/src/components/Wordcloud/index.js/0 | {
"file_path": "odota/web/src/components/Wordcloud/index.js",
"repo_id": "odota",
"token_count": 17
} | 269 |
{
"yes": "yes",
"no": "no",
"abbr_thousand": "Professionella spelare",
"abbr_million": "Offentliga spelare",
"abbr_billion": "{1} och {2}",
"abbr_trillion": "{1}, {2} och {3}",
"abbr_quadrillion": "{i}, {rest}",
"abbr_not_available": "N/A",
"abbr_pick": "P",
"abbr_win": "W",
"abbr_number": "No.",
... | odota/web/src/lang/sv-SE.json/0 | {
"file_path": "odota/web/src/lang/sv-SE.json",
"repo_id": "odota",
"token_count": 20214
} | 270 |
export type GlobalStrings = {
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_1: string
rank_tier_2: string
rank_tier_3: string
rank_tier_4: string
rank_tier_5: string
rank_tier_6: string
rank_ti... | odota/web/src/types/common/GlobalStrings.ts/0 | {
"file_path": "odota/web/src/types/common/GlobalStrings.ts",
"repo_id": "odota",
"token_count": 154
} | 271 |
[
{
"match_id": 4111092417,
"player_slot": 128,
"radiant_win": false,
"hero_id": 1,
"start_time": 1536594324,
"duration": 2551,
"game_mode": 3,
"lobby_type": 0,
"version": null,
"kills": 23,
"deaths": 2,
"assists": 8,
"skill": 3,
"leaver_status": 0,
"party_size": null
},
{
"match_id":... | odota/web/testcafe/cachedAjax/players_101695162_matches_significant=0.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/players_101695162_matches_significant=0.json",
"repo_id": "odota",
"token_count": 971124
} | 272 |
[
{
"match_id": "4109475072",
"start_time": "1536511504",
"hero_id": "60",
"score": "112"
},
{
"match_id": "4101835159",
"start_time": "1536162031",
"hero_id": "91",
"score": "109"
},
{
"match_id": "4109850335",
"start_time": "1536531527",
"hero_id": "22",
"score": "89"
},
{
"match_id":... | odota/web/testcafe/cachedAjax/records_assists_.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/records_assists_.json",
"repo_id": "odota",
"token_count": 5480
} | 273 |
import {
RequestMock,
RequestLogger,
} from 'testcafe';
import fetch from 'isomorphic-fetch';
import fs from 'fs';
import sanitize from 'sanitize-filename';
import {
waitForReact,
} from 'testcafe-react-selectors';
export const host = 'http://localhost:5000';
async function fetchFromAPI(requestURL) {
const re... | odota/web/testcafe/testsUtility.js/0 | {
"file_path": "odota/web/testcafe/testsUtility.js",
"repo_id": "odota",
"token_count": 625
} | 274 |
package pawndex
import (
"os"
"reflect"
"testing"
"time"
"github.com/Southclaws/sampctl/pawnpackage"
"github.com/Southclaws/sampctl/versioning"
"github.com/openmultiplayer/web/internal/config"
)
var (
database Repository
now = time.Date(2020, 1, 1, 1, 1, 1, 1, time.UTC)
)
func TestMain(m *testing.M) ... | openmultiplayer/web/app/resources/pawndex/boltdb_test.go/0 | {
"file_path": "openmultiplayer/web/app/resources/pawndex/boltdb_test.go",
"repo_id": "openmultiplayer",
"token_count": 3839
} | 275 |
package user
import (
"context"
)
type Repository interface {
CreateUser(ctx context.Context, email string, authMethod AuthMethod, username string) (*User, error)
LinkGitHub(ctx context.Context, userID, githubAccountID, githubUsername, githubEmail string) error
LinkDiscord(ctx context.Context, userID, discordAcco... | openmultiplayer/web/app/resources/user/repository.go/0 | {
"file_path": "openmultiplayer/web/app/resources/user/repository.go",
"repo_id": "openmultiplayer",
"token_count": 262
} | 276 |
package api
import (
"context"
"net"
"net/http"
"github.com/go-chi/chi"
"github.com/go-chi/cors"
"go.uber.org/fx"
"go.uber.org/zap"
"github.com/openmultiplayer/web/app/services/authentication"
"github.com/openmultiplayer/web/app/transports/api/auth"
"github.com/openmultiplayer/web/app/transports/api/docs"
... | openmultiplayer/web/app/transports/api/api.go/0 | {
"file_path": "openmultiplayer/web/app/transports/api/api.go",
"repo_id": "openmultiplayer",
"token_count": 1407
} | 277 |
package servers
import (
"net/http"
"time"
"github.com/go-chi/chi"
"github.com/pkg/errors"
"github.com/openmultiplayer/web/internal/web"
)
type DeletedPayload struct {
Time *time.Time `json:"time"`
}
func (s *service) deleted(w http.ResponseWriter, r *http.Request) {
var p DeletedPayload
if ok := web.Parse... | openmultiplayer/web/app/transports/api/servers/h_deleted.go/0 | {
"file_path": "openmultiplayer/web/app/transports/api/servers/h_deleted.go",
"repo_id": "openmultiplayer",
"token_count": 231
} | 278 |
package main
import (
"context"
"os"
"os/signal"
"time"
"github.com/joho/godotenv"
_ "github.com/joho/godotenv/autoload"
"go.uber.org/fx"
"go.uber.org/zap"
"github.com/openmultiplayer/web/app/resources"
"github.com/openmultiplayer/web/app/services"
"github.com/openmultiplayer/web/app/transports/api"
"git... | openmultiplayer/web/cmd/server/main.go/0 | {
"file_path": "openmultiplayer/web/cmd/server/main.go",
"repo_id": "openmultiplayer",
"token_count": 433
} | 279 |
---
title: OnEnterExitModShop
description: This callback is called when a player enters or exits a mod shop.
tags: ["player"]
---
## Description
This callback is called when a player enters or exits a mod shop.
| Name | Description |
| ----------... | openmultiplayer/web/docs/scripting/callbacks/OnEnterExitModShop.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnEnterExitModShop.md",
"repo_id": "openmultiplayer",
"token_count": 642
} | 280 |
---
title: OnPlayerClickGangZone
description: This callback is called when a player clicked a gangzone on the pause menu map (by right-clicking).
tags: ["player", "gangzone"]
---
<VersionWarn name='callback' version='omp v1.1.0.2612' />
## Description
This callback is called when a player clicked a gangzone on the p... | openmultiplayer/web/docs/scripting/callbacks/OnPlayerClickGangZone.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerClickGangZone.md",
"repo_id": "openmultiplayer",
"token_count": 478
} | 281 |
---
title: OnPlayerEnterVehicle
description: This callback is called when a player starts to enter a vehicle, meaning the player is not in vehicle yet at the time this callback is called.
tags: ["player", "vehicle"]
---
## Description
This callback is called when a player starts to enter a vehicle, meaning the player... | openmultiplayer/web/docs/scripting/callbacks/OnPlayerEnterVehicle.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerEnterVehicle.md",
"repo_id": "openmultiplayer",
"token_count": 562
} | 282 |
---
title: OnPlayerPickupStreamOut
description: This callback is called when a player-pickup leaves 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 leaves the visual ra... | openmultiplayer/web/docs/scripting/callbacks/OnPlayerPickupStreamOut.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerPickupStreamOut.md",
"repo_id": "openmultiplayer",
"token_count": 649
} | 283 |
---
title: OnRecordingPlaybackEnd
description: This callback is called when a recorded file being reproduced with StartRecordingPlayback has reached to its end.
tags: []
---
## Description
This callback is called when a recorded file being reproduced with NPC:[StartRecordingPlayback](../functions/StartRecordingPlayba... | openmultiplayer/web/docs/scripting/callbacks/OnRecordingPlaybackEnd.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnRecordingPlaybackEnd.md",
"repo_id": "openmultiplayer",
"token_count": 241
} | 284 |
---
title: AddPlayerClassEx
description: This function is exactly the same as the AddPlayerClass function, with the addition of a team parameter.
tags: ["player", "class"]
---
## Description
This function is exactly the same as the AddPlayerClass function, with the addition of a team parameter.
| Name | De... | openmultiplayer/web/docs/scripting/functions/AddPlayerClassEx.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/AddPlayerClassEx.md",
"repo_id": "openmultiplayer",
"token_count": 1024
} | 285 |
---
title: AreInteriorWeaponsAllowed
description: Can weapons be used in interiors?
tags: []
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Can weapons be used in interiors?
## Returns
true: Allowed.
false: Not allowed.
## Examples
```c
if (AreInteriorWeaponsAllowed())
{
// Do something
}
```
... | openmultiplayer/web/docs/scripting/functions/AreInteriorWeaponsAllowed.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/AreInteriorWeaponsAllowed.md",
"repo_id": "openmultiplayer",
"token_count": 146
} | 286 |
---
title: BeginObjectSelecting
description: Display the cursor and allow the player to select an object.
tags: ["object"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Display the cursor and allow the player to select an object. OnPlayerSelectObject is called when the player selects an object.
| Nam... | openmultiplayer/web/docs/scripting/functions/BeginObjectSelecting.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/BeginObjectSelecting.md",
"repo_id": "openmultiplayer",
"token_count": 463
} | 287 |
---
title: CountRunningTimers
description: Get the running timers.
tags: ["timer"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the running timers. ([SetTimer](SetTimer) & [SetTimerEx](SetTimerEx))
## Returns
Returns the amount of running timers.
## Examples
```c
printf("Running timers: %d", ... | openmultiplayer/web/docs/scripting/functions/CountRunningTimers.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/CountRunningTimers.md",
"repo_id": "openmultiplayer",
"token_count": 166
} | 288 |
---
title: DB_GetDatabaseConnectionCount
description: Gets the number of open database connections for debugging purposes.
keywords:
- sqlite
tags: ["sqlite"]
---
## Description
The function gets the number of open database connections for debugging purposes.
The function has no parameters.
## Examples
```c
prin... | openmultiplayer/web/docs/scripting/functions/DB_GetDatabaseConnectionCount.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/DB_GetDatabaseConnectionCount.md",
"repo_id": "openmultiplayer",
"token_count": 586
} | 289 |
---
title: DeletePlayer3DTextLabel
description: Destroy a 3D text label that was created using CreatePlayer3DTextLabel.
tags: ["player", "3dtextlabel"]
---
## Description
Destroy a 3D text label that was created using CreatePlayer3DTextLabel.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/DeletePlayer3DTextLabel.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/DeletePlayer3DTextLabel.md",
"repo_id": "openmultiplayer",
"token_count": 689
} | 290 |
---
title: DisableRemoteVehicleCollisions
description: Disables collisions between occupied vehicles for a player.
tags: ["vehicle"]
---
<VersionWarn version='SA-MP 0.3.7' />
## Description
Disables collisions between occupied vehicles for a player.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/DisableRemoteVehicleCollisions.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/DisableRemoteVehicleCollisions.md",
"repo_id": "openmultiplayer",
"token_count": 463
} | 291 |
---
title: GameModeExit
description: Ends the current gamemode.
tags: []
---
## Description
Ends the current gamemode.
## Examples
```c
if (OneTeamHasWon)
{
GameModeExit();
}
```
## Related Functions
- [SetModeRestartTime](SetModeRestartTime): Sets the delay between loading main scripts, in seconds.
| openmultiplayer/web/docs/scripting/functions/GameModeExit.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GameModeExit.md",
"repo_id": "openmultiplayer",
"token_count": 103
} | 292 |
---
title: Get3DTextLabelAttachedData
description: Gets the 3D text label attached data.
tags: ["3dtextlabel"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the 3D text label attached data.
| Name | Description |
| --------... | openmultiplayer/web/docs/scripting/functions/Get3DTextLabelAttachedData.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/Get3DTextLabelAttachedData.md",
"repo_id": "openmultiplayer",
"token_count": 729
} | 293 |
---
title: GetActors
description: Gets an array variable of the IDs of the created actors on the server.
tags: ["actor"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets an array variable of the IDs of the created actors on the server.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/GetActors.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetActors.md",
"repo_id": "openmultiplayer",
"token_count": 381
} | 294 |
---
title: GetMenuItems
description: Get the number of rows in the given column.
tags: ["menu"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the number of rows in the given column.
| Name | Description |
| ----------- | ------------------- |
| Menu:menuid | The ID of the menu. |
|... | openmultiplayer/web/docs/scripting/functions/GetMenuItems.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetMenuItems.md",
"repo_id": "openmultiplayer",
"token_count": 230
} | 295 |
---
title: GetObjectRot
description: Use this function to get the objects current rotation.
tags: ["object"]
---
## Description
Use this function to get the objects current rotation. The rotation is saved by reference in three rotationX/rotationY/rotationZ variables.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/GetObjectRot.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetObjectRot.md",
"repo_id": "openmultiplayer",
"token_count": 786
} | 296 |
---
title: GetPlayer3DTextLabelColour
description: Gets the player's 3D text label colour.
tags: ["player", "3dtextlabel"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the player's 3D text label colour.
| Name | Description |
| -----... | openmultiplayer/web/docs/scripting/functions/GetPlayer3DTextLabelColour.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayer3DTextLabelColour.md",
"repo_id": "openmultiplayer",
"token_count": 419
} | 297 |
---
title: GetPlayerCameraMode
description: Returns the current GTA camera mode for the requested player.
tags: ["player", "camera"]
---
## Description
Returns the current GTA [camera mode](../resources/cameramodes) for the requested player. The camera modes are useful in determining whether a player is aiming, doing... | openmultiplayer/web/docs/scripting/functions/GetPlayerCameraMode.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerCameraMode.md",
"repo_id": "openmultiplayer",
"token_count": 475
} | 298 |
---
title: GetPlayerDistanceFromPoint
description: Calculate the distance between a player and a map coordinate.
tags: ["player"]
---
## Description
Calculate the distance between a player and a map coordinate.
| Name | Description |
| -------- | -------------------------... | openmultiplayer/web/docs/scripting/functions/GetPlayerDistanceFromPoint.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerDistanceFromPoint.md",
"repo_id": "openmultiplayer",
"token_count": 579
} | 299 |
---
title: GetPlayerMenu
description: Gets the ID of the menu the player is currently viewing (shown by ShowMenuForPlayer).
tags: ["player", "menu"]
---
## Description
Gets the ID of the menu the player is currently viewing (shown by ShowMenuForPlayer).
| Name | Description |... | openmultiplayer/web/docs/scripting/functions/GetPlayerMenu.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerMenu.md",
"repo_id": "openmultiplayer",
"token_count": 401
} | 300 |
---
title: GetPlayerPickupModel
description: Gets the model ID of a player-pickup.
tags: ["player", "pickup", "playerpickup"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the model ID of a player-pickup.
| Name | Description |
|----------|------------... | openmultiplayer/web/docs/scripting/functions/GetPlayerPickupModel.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerPickupModel.md",
"repo_id": "openmultiplayer",
"token_count": 628
} | 301 |
---
title: GetPlayerSpectateType
description: Returns the player's spectate type (vehicle or player).
tags: ["player"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Returns the player's spectate type (vehicle or player).
| Name | Description |
|----------|-----------------------|
| play... | openmultiplayer/web/docs/scripting/functions/GetPlayerSpectateType.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerSpectateType.md",
"repo_id": "openmultiplayer",
"token_count": 354
} | 302 |
---
title: GetPlayerWantedLevel
description: Gets the wanted level of a player.
tags: ["player"]
---
## Description
Gets the wanted level of a player.
| Name | Description |
| -------- | -------------------------------------------------------------- |
| playerid... | openmultiplayer/web/docs/scripting/functions/GetPlayerWantedLevel.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerWantedLevel.md",
"repo_id": "openmultiplayer",
"token_count": 445
} | 303 |
---
title: GetServerRuleFlags
description: Gets the flags of a server rule.
tags: ["rule"]
---
<VersionWarn version='omp v1.1.0.2612' />
:::warning
This function has not yet been implemented.
:::
## Description
Gets the flags of a server rule.
## Return Values
Returns the server rule flags.
## Examples
```c
p... | openmultiplayer/web/docs/scripting/functions/GetServerRuleFlags.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetServerRuleFlags.md",
"repo_id": "openmultiplayer",
"token_count": 285
} | 304 |
---
title: GetVehicleHealth
description: Get the health of a vehicle.
tags: ["vehicle"]
---
## Description
Get the health of a vehicle.
| Name | Description |
| ------------- | ------------------------------------------------------------------... | openmultiplayer/web/docs/scripting/functions/GetVehicleHealth.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetVehicleHealth.md",
"repo_id": "openmultiplayer",
"token_count": 688
} | 305 |
---
title: GetVehicleParamsSirenState
description: Returns a vehicle's siren state (on/off).
tags: ["vehicle"]
---
<VersionWarn version='SA-MP 0.3.7' />
## Description
Returns a vehicle's siren state (on/off).
| Name | Description |
| --------- | ---------------------------... | openmultiplayer/web/docs/scripting/functions/GetVehicleParamsSirenState.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetVehicleParamsSirenState.md",
"repo_id": "openmultiplayer",
"token_count": 412
} | 306 |
---
title: GetWeaponName
description: Get the name of a weapon.
tags: []
---
## Description
Get the name of a weapon.
| Name | Description |
| --------------------- | ----------------------------------------------------------------------- |... | openmultiplayer/web/docs/scripting/functions/GetWeaponName.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetWeaponName.md",
"repo_id": "openmultiplayer",
"token_count": 769
} | 307 |
---
title: HidePlayerDialog
description: Hides any dialog the player may currently be able to see.
tags: ["player", "dialog"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Hides any dialog the player may currently be able to see.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/HidePlayerDialog.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/HidePlayerDialog.md",
"repo_id": "openmultiplayer",
"token_count": 593
} | 308 |
---
title: IsObjectMoving
description: Checks if the given objectid is moving.
tags: ["object"]
---
## Description
Checks if the given objectid is moving.
| Name | Description |
| -------- | -------------------------------------------- |
| objectid | The objectid you want to chec... | openmultiplayer/web/docs/scripting/functions/IsObjectMoving.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/IsObjectMoving.md",
"repo_id": "openmultiplayer",
"token_count": 333
} | 309 |
---
title: IsPlayerInModShop
description: Check if the player is in the mod shop.
tags: ["player"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Check if the player is in the mod shop.
## Parameters
| Name | Description |
|----------|--------------------------------|
| playeri... | openmultiplayer/web/docs/scripting/functions/IsPlayerInModShop.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/IsPlayerInModShop.md",
"repo_id": "openmultiplayer",
"token_count": 458
} | 310 |
---
title: IsRepeatingTimer
description: Checks if a timer is set to repeat.
tags: ["timer"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Checks if a timer is set to repeat.
## Parameters
| Name | Description |
|---------|-------------------------------|
| timerid | The ID of t... | openmultiplayer/web/docs/scripting/functions/IsRepeatingTimer.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/IsRepeatingTimer.md",
"repo_id": "openmultiplayer",
"token_count": 326
} | 311 |
---
title: IsValidPlayerTextDraw
description: Checks if a player-textdraw is valid.
tags: ["player", "textdraw", "playertextdraw"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Checks if a player-textdraw is valid.
## Parameters
| Name | Description |
| -----... | openmultiplayer/web/docs/scripting/functions/IsValidPlayerTextDraw.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/IsValidPlayerTextDraw.md",
"repo_id": "openmultiplayer",
"token_count": 782
} | 312 |
---
title: MoveObject
description: Move an object to a new position with a set speed.
tags: ["object"]
---
## Description
Move an object to a new position with a set speed. Players/vehicles will 'surf' the object as it moves.
| Name | Description |
| ---------... | openmultiplayer/web/docs/scripting/functions/MoveObject.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/MoveObject.md",
"repo_id": "openmultiplayer",
"token_count": 1286
} | 313 |
---
title: PlayerGangZoneGetColour
description: Get the colour of a player gangzone
tags: ["player", "gangzone", "playergangzone"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the colour of a player gangzone.
| Name | Description |
| --... | openmultiplayer/web/docs/scripting/functions/PlayerGangZoneGetColour.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/PlayerGangZoneGetColour.md",
"repo_id": "openmultiplayer",
"token_count": 790
} | 314 |
---
title: PlayerTextDrawGetPreviewVehCol
description: Gets the preview vehicle colors of a 3D preview player-textdraw.
tags: ["player", "textdraw", "playertextdraw"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the preview vehicle colors of a 3D preview player-textdraw.
| Name | D... | openmultiplayer/web/docs/scripting/functions/PlayerTextDrawGetPreviewVehCol.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/PlayerTextDrawGetPreviewVehCol.md",
"repo_id": "openmultiplayer",
"token_count": 740
} | 315 |
---
title: PlayerTextDrawSetProportional
description: Appears to scale text spacing to a proportional ratio.
tags: ["player", "textdraw", "playertextdraw"]
---
## Description
Appears to scale text spacing to a proportional ratio. Useful when using [PlayerTextDrawLetterSize](PlayerTextDrawLetterSize) to ensure the tex... | openmultiplayer/web/docs/scripting/functions/PlayerTextDrawSetProportional.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/PlayerTextDrawSetProportional.md",
"repo_id": "openmultiplayer",
"token_count": 830
} | 316 |
---
title: RepairVehicle
description: Fully repairs a vehicle, including visual damage (bumps, dents, scratches, popped tires etc.
tags: ["vehicle"]
---
## Description
Fully repairs a vehicle, including visual damage (bumps, dents, scratches, popped tires etc.).
| Name | Description |
| ---... | openmultiplayer/web/docs/scripting/functions/RepairVehicle.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/RepairVehicle.md",
"repo_id": "openmultiplayer",
"token_count": 399
} | 317 |
---
title: SendPlayerMessageToAll
description: Sends a message in the name of a player to all other players on the server.
tags: ["player"]
---
## Description
Sends a message in the name of a player to all other players on the server. The line will start with the sender's name in their color, followed by the message ... | openmultiplayer/web/docs/scripting/functions/SendPlayerMessageToAll.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SendPlayerMessageToAll.md",
"repo_id": "openmultiplayer",
"token_count": 569
} | 318 |
---
title: SetMenuColumnHeader
description: Sets the caption of a column in a menu.
tags: ["menu"]
---
## Description
Sets the caption of a column in a menu.
| Name | Description |
| ---------------- | ------------------------------------------ |
| Menu:menuid | ID of ... | openmultiplayer/web/docs/scripting/functions/SetMenuColumnHeader.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetMenuColumnHeader.md",
"repo_id": "openmultiplayer",
"token_count": 520
} | 319 |
---
title: SetPVarString
description: Saves a string into a player variable.
tags: ["player variable", "pvar"]
---
## Description
Saves a string into a player variable.
| Name | Description |
| ---------------- | ------------------------------------------------... | openmultiplayer/web/docs/scripting/functions/SetPVarString.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetPVarString.md",
"repo_id": "openmultiplayer",
"token_count": 674
} | 320 |
---
title: SetPlayerColor
description: Set the colour of a player's nametag and marker (radar blip).
tags: ["player"]
---
## Description
Set the colour of a player's nametag and marker (radar blip).
| Name | Description |
| -------- | ---------------------------------------- |
| play... | openmultiplayer/web/docs/scripting/functions/SetPlayerColor.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetPlayerColor.md",
"repo_id": "openmultiplayer",
"token_count": 370
} | 321 |
---
title: SetPlayerObjectPos
description: Sets the position of a player-object to the specified coordinates.
tags: ["player", "object", "playerobject"]
---
## Description
Sets the position of a player-object to the specified coordinates.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/SetPlayerObjectPos.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetPlayerObjectPos.md",
"repo_id": "openmultiplayer",
"token_count": 921
} | 322 |
---
title: SetPlayerVelocity
description: Set a player's velocity on the X, Y and Z axes.
tags: ["player"]
---
## Description
Set a player's velocity on the X, Y and Z axes.
| Name | Description |
| -------- | ----------------------------------- |
| playerid | The player to apply the spee... | openmultiplayer/web/docs/scripting/functions/SetPlayerVelocity.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetPlayerVelocity.md",
"repo_id": "openmultiplayer",
"token_count": 383
} | 323 |
---
title: SetVehicleDead
description: Sets the vehicle to dead.
tags: ["vehicle"]
---
<VersionWarn version='omp v1.1.0.2612' />
:::warning
This function has not yet been implemented.
:::
## Description
Sets the vehicle to dead.
## Parameters
| Name | Description |
|-----------|---... | openmultiplayer/web/docs/scripting/functions/SetVehicleDead.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetVehicleDead.md",
"repo_id": "openmultiplayer",
"token_count": 222
} | 324 |
---
title: SetVehicleZAngle
description: Set the Z rotation (yaw) of a vehicle.
tags: ["vehicle"]
---
## Description
Set the Z rotation (yaw) of a vehicle.
| Name | Description |
| ----------- | --------------------------------------------- |
| vehicleid | The ID of the veh... | openmultiplayer/web/docs/scripting/functions/SetVehicleZAngle.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetVehicleZAngle.md",
"repo_id": "openmultiplayer",
"token_count": 551
} | 325 |
---
title: StopPlayerHoldingObject
description: Removes attached objects.
tags: ["player"]
---
## Description
Removes attached objects.
| Name | Description |
| -------- | ---------------------------------------------------- |
| playerid | ID of the player you want to rem... | openmultiplayer/web/docs/scripting/functions/StopPlayerHoldingObject.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/StopPlayerHoldingObject.md",
"repo_id": "openmultiplayer",
"token_count": 281
} | 326 |
---
title: TextDrawHideForAll
description: Hides a text draw for all players.
tags: ["textdraw"]
---
## Description
Hides a text draw for all players.
| Name | Description |
| ----------- | -------------------------------------------------... | openmultiplayer/web/docs/scripting/functions/TextDrawHideForAll.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/TextDrawHideForAll.md",
"repo_id": "openmultiplayer",
"token_count": 471
} | 327 |
---
title: TextDrawSetStringForPlayer
description: Changes the text on a textdraw for a specific player.
tags: ["textdraw"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Changes the text on a textdraw for a specific player.
| Name | Description |
| ----------... | openmultiplayer/web/docs/scripting/functions/TextDrawSetStringForPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/TextDrawSetStringForPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 1129
} | 328 |
---
title: UpdateVehicleDamageStatus
description: Sets the various visual damage statuses of a vehicle, such as popped tires, broken lights and damaged panels.
tags: ["vehicle"]
---
:::tip
For some useful functions for working with vehicle damage values, see [here](../resources/damagestatus).
:::
## Description
Se... | openmultiplayer/web/docs/scripting/functions/UpdateVehicleDamageStatus.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/UpdateVehicleDamageStatus.md",
"repo_id": "openmultiplayer",
"token_count": 807
} | 329 |
---
title: flength
description: Returns the length of a file.
tags: ["file management"]
---
<LowercaseNote />
## Description
Returns the length of a file.
| Name | Description |
| ----------- | ------------------------------------------ |
| File:handle | The file handle returne... | openmultiplayer/web/docs/scripting/functions/flength.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/flength.md",
"repo_id": "openmultiplayer",
"token_count": 700
} | 330 |
---
title: floattan
description: Get the tangent from a given angle.
tags: ["math", "floating-point"]
---
<LowercaseNote />
## Description
Get the tangent from a given angle. The input angle may be in radians, degrees or grades.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/floattan.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/floattan.md",
"repo_id": "openmultiplayer",
"token_count": 546
} | 331 |
---
title: getproperty
description: Get a specific property from the memory, the string is returned as a packed string!
tags: ["core", "property"]
---
<LowercaseNote />
## Description
Get a specific property from the memory, the string is returned as a packed string!
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/getproperty.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/getproperty.md",
"repo_id": "openmultiplayer",
"token_count": 589
} | 332 |
---
title: sendstring
description: Sends a packet containing a string. (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 containing a stri... | openmultiplayer/web/docs/scripting/functions/sendstring.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/sendstring.md",
"repo_id": "openmultiplayer",
"token_count": 535
} | 333 |
---
title: strval
description: Convert a string to an integer.
tags: ["string"]
---
<LowercaseNote />
## Description
Convert a string to an integer.
| Name | Description |
| -------------- | --------------------------------------------- |
| const string[] | The string you... | openmultiplayer/web/docs/scripting/functions/strval.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/strval.md",
"repo_id": "openmultiplayer",
"token_count": 328
} | 334 |
# Foreword
---
“pawn” is a simple, typeless, 32-bit “scripting” language with a C-like syntax.
Execution speed, stability, simplicity and a small footprint were essential
design
criterions for both the language and the interpreter/abstract machine that a
pawn program runs on.
An application or tool cannot do or be e... | openmultiplayer/web/docs/scripting/language/reference/01-Foreword.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/language/reference/01-Foreword.md",
"repo_id": "openmultiplayer",
"token_count": 950
} | 335 |
---
title: Body parts
---
:::info
The following entries are body part IDs which can be used by [OnPlayerGiveDamage](../callbacks/OnPlayerGiveDamage), [OnPlayerTakeDamage](../callbacks/OnPlayerTakeDamage) and [OnPlayerGiveDamageActor](../callbacks/OnPlayerGiveDamageActor).
:::
---
| ID | Body Part |
| --- | ------... | openmultiplayer/web/docs/scripting/resources/bodyparts.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/resources/bodyparts.md",
"repo_id": "openmultiplayer",
"token_count": 249
} | 336 |
---
title: Escape Codes
sidebar_label: Escape Codes
---
When create a string you may find that some character may be impossible or extremely difficult to express in the source code of your script, this is where escape codes come in handy - these allow you to use the symbols and expressions that come under this categor... | openmultiplayer/web/docs/scripting/resources/escapecodes.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/resources/escapecodes.md",
"repo_id": "openmultiplayer",
"token_count": 862
} | 337 |
---
title: SA-MP Objects
description: This page contains a list of the custom objects added by SA-MP.
sidebar_label: SAMP Objects
---
:::info
You can refer this [website](https://dev.prineside.com/en/gtasa_samp_model_id/) for a preview and list of all supported objects along with their ids.
:::
## **List of custom ... | openmultiplayer/web/docs/scripting/resources/samp_objects.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/resources/samp_objects.md",
"repo_id": "openmultiplayer",
"token_count": 13623
} | 338 |
---
title: Vehicle Door Status
description: Vehicle door status definitions.
---
:::note
These definitions are used by natives such as [GetVehicleDamageStatus](../functions/GetVehicleDamageStatus) and [UpdateVehicleDamageStatus](../functions/UpdateVehicleDamageStatus).
:::
| Definition ... | openmultiplayer/web/docs/scripting/resources/vehicle-door-status.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/resources/vehicle-door-status.md",
"repo_id": "openmultiplayer",
"token_count": 1459
} | 339 |
---
title: "Lag Compensation"
description: Lag compensation explanation.
---
Lag compensation for fired bullets is enabled by default on SA-MP servers.
It can be toggled using the `lagcompmode` server variable in [server.cfg](server.cfg) or `game.lag_compensation_mode` in [config.json](config.json).
Setting it to 0 ... | openmultiplayer/web/docs/server/LagCompensation.md/0 | {
"file_path": "openmultiplayer/web/docs/server/LagCompensation.md",
"repo_id": "openmultiplayer",
"token_count": 169
} | 340 |
---
title: Dnevnik promjena
description: open.mp razvojni napredak i dnevnik promjena.
---
## **[v1.2.0.2670](https://github.com/openmultiplayer/open.mp/releases/tag/v1.2.0.2670) (Najnoviji)**
Podstičemo svaki open.mp server da se ažurira na ovu verziju. Došlo je ne samo do primjetnih poboljšanja performansi, već i d... | openmultiplayer/web/docs/translations/bs/changelog.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/bs/changelog.md",
"repo_id": "openmultiplayer",
"token_count": 7329
} | 341 |
---
title: OnIncomingConnection
description: Ovaj callback se poziva kada IP adresa pokuša da se konektuje na server.
tags: []
---
## Deskripcija
Ovaj callback se poziva kada IP adresa pokuša da se konektuje na server. Da blokirate nadolazeće konekcije, koristite BlockIpAddress.
| Name | Description ... | openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnIncomingConnection.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnIncomingConnection.md",
"repo_id": "openmultiplayer",
"token_count": 540
} | 342 |
---
title: OnPlayerEnterRaceCheckpoint
description: Ovaj callback je pozvan kada igrač uđe u trkački checkpoint.
tags: ["player", "checkpoint", "racecheckpoint"]
---
## Deskripcija
Ovaj callback je pozvan kada igrač uđe u trkački checkpoint.
| Ime | Deskripcija |
| -------- | --... | openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md",
"repo_id": "openmultiplayer",
"token_count": 491
} | 343 |
---
title: OnPlayerSelectObject
description: Ovaj callback je pozvan kada igrač selektuje objekat nakon što je SelectObject funkcija iskorištena.
tags: ["player"]
---
## Deskripcija
Ovaj callback je pozvan kada igrač selektuje objekat nakon što je SelectObject funkcija iskorištena.
| Ime | Deskripcija ... | openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnPlayerSelectObject.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnPlayerSelectObject.md",
"repo_id": "openmultiplayer",
"token_count": 719
} | 344 |
---
title: OnVehicleDeath
description: Ovaj callback je pozvan kada se vozilo unište - bilo eksplozijom ili utapanjem u vodi.
tags: ["vehicle"]
---
## Deskripcija
Ovaj callback je pozvan kada se vozilo unište - bilo eksplozijom ili utapanjem u vodi.
| Ime | Deskripcija ... | openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnVehicleDeath.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/bs/scripting/callbacks/OnVehicleDeath.md",
"repo_id": "openmultiplayer",
"token_count": 802
} | 345 |
---
title: AddStaticVehicleEx
description: Dodaje 'statično' vozilo (modeli su unaprijed učitani za igrač) u gamemode-u.
tags: ["vehicle"]
---
## Deskripcija
Dodaje 'statično' vozilo (modeli su unaprijed učitani za igrač) u gamemode-u. Od `AddStaticVehicle` razlikuje se u tome što dozvoljava da se postavi proizvoljno... | openmultiplayer/web/docs/translations/bs/scripting/functions/AddStaticVehicleEx.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/bs/scripting/functions/AddStaticVehicleEx.md",
"repo_id": "openmultiplayer",
"token_count": 2122
} | 346 |
---
title: AttachTrailerToVehicle
description: Prikvačite vozilo za drugo vozilo kao prikolicu.
tags: ["vehicle"]
---
## Deskripcija
Prikvačite vozilo za drugo vozilo kao prikolicu.
| Ime | Deskripcija |
| --------- | ------------------------------------------------- |
| t... | openmultiplayer/web/docs/translations/bs/scripting/functions/AttachTrailerToVehicle.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/bs/scripting/functions/AttachTrailerToVehicle.md",
"repo_id": "openmultiplayer",
"token_count": 524
} | 347 |
---
title: CreateExplosionForPlayer
description: Kreira eksploziju koja je vidljiva samo jednom igraču.
tags: ["player"]
---
:::warning
Ova funkcija je dodana u SA-MP 0.3.z R2-2 i ne radi u nižim verzijama!
:::
## Deskripcija
Kreira eksploziju koja je vidljiva samo jednom igraču. Ovo se može koristiti da izdvojite... | openmultiplayer/web/docs/translations/bs/scripting/functions/CreateExplosionForPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/bs/scripting/functions/CreateExplosionForPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 778
} | 348 |
---
title: DestroyPlayerObject
description: Uništava objekat igrača kreiran sa CreatePlayerObject.
tags: ["player"]
---
## Deskripcija
Uništava objekat igrača kreiran sa CreatePlayerObject.
| Ime | Deskripcija |
| -------- | ----------------------------------------... | openmultiplayer/web/docs/translations/bs/scripting/functions/DestroyPlayerObject.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/bs/scripting/functions/DestroyPlayerObject.md",
"repo_id": "openmultiplayer",
"token_count": 747
} | 349 |
---
title: EnableTirePopping
description: Sa ovom funkcijom možete da omogućite ili onemogućite pucanje guma.
tags: []
---
## Deskripcija
Sa ovom funkcijom možete da omogućite ili onemogućite pucanje guma.
| Ime | Deskripcija |
| ---- | --------------------------------------------... | openmultiplayer/web/docs/translations/bs/scripting/functions/EnableTirePopping.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/bs/scripting/functions/EnableTirePopping.md",
"repo_id": "openmultiplayer",
"token_count": 425
} | 350 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.