sampgo

package module
v0.0.0-...-153ad9e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

README

sampgo is a SAMP gamemode SDK written in Go, based on Zeex's SAMPGDK.

Both Linux and Windows supported!

NOTE

The only working branch is experimental - for that to work, you must clone the the base repo, edit the go get ... line and add @experimental to the end of it. This will force Go to download the experimental branch (over the master or main branch) and requires GO111MODULE env to be set to on. The provided batch scripts in the base gamemode repository already does it for you and is highly recommended to use that for now! If you have any issues and wish to update the sampgo your gamemode is built with, please delete the Go cache and edit your go.mod file.

Quickstart

Clone the https://github.com/sampgo/base.git repo.

Or check the wiki for more information.

Installation

go get -u github.com/sampgo/sampgo

Credits

  • AliLogic for quite a few things.

  • dakyskye for helping out with some event handling logic, and a lot of motivation.

  • 00face for his amazing graphic artistry! If you would like to support him in anyway, please check out his Ko-fi!

  • JetBrains for providing us with access to the All Products Pack.

API coverage

See here!

Support

Join our Discord, we will be more than happy to aid you if possible.

Documentation

Index

Constants

View Source
const (
	SpecialActionNone                int = 0
	SpecialActionDuck                int = 1
	SpecialActionUsejetpack          int = 2
	SpecialActionEnterVehicle        int = 3
	SpecialActionExitVehicle         int = 4
	SpecialActionDance1              int = 5
	SpecialActionDance2              int = 6
	SpecialActionDance3              int = 7
	SpecialActionDance4              int = 8
	SpecialActionHandsup             int = 10
	SpecialActionUsecellphone        int = 11
	SpecialActionSitting             int = 12
	SpecialActionStopusecellphone    int = 13
	SpecialActionDrinkBeer           int = 20
	SpecialActionSmokeCiggy          int = 21
	SpecialActionDrinkWine           int = 22
	SpecialActionDrinkSprunk         int = 23
	SpecialActionCuffed              int = 24
	SpecialActionCarry               int = 25
	SpecialActionPissing             int = 68
	FightStyleNormal                 int = 4
	FightStyleBoxing                 int = 5
	FightStyleKungfu                 int = 6
	FightStyleKneehead               int = 7
	FightStyleGrabkick               int = 15
	FightStyleElbow                  int = 16
	WeaponskillPistol                int = 0
	WeaponskillPistolSilenced        int = 1
	WeaponskillDesertEagle           int = 2
	WeaponskillShotgun               int = 3
	WeaponskillSawnoffShotgun        int = 4
	WeaponskillSpas12Shotgun         int = 5
	WeaponskillMicroUzi              int = 6
	WeaponskillMp5                   int = 7
	WeaponskillAk47                  int = 8
	WeaponskillM4                    int = 9
	WeaponskillSniperrifle           int = 10
	WeaponstateUnknown               int = -1
	WeaponstateNoBullets             int = 0
	WeaponstateLastBullet            int = 1
	WeaponstateMoreBullets           int = 2
	WeaponstateReloading             int = 3
	MaxPlayerAttachedObjects         int = 10
	PlayerVartypeNone                int = 0
	PlayerVartypeInt                 int = 1
	PlayerVartypeString              int = 2
	PlayerVartypeFloat               int = 3
	MaxChatbubbleLength              int = 144
	MapiconLocal                     int = 0
	MapiconGlobal                    int = 1
	MapiconLocalCheckpoint           int = 2
	MapiconGlobalCheckpoint          int = 3
	CameraCut                        int = 2
	CameraMove                       int = 1
	SpectateModeNormal               int = 1
	SpectateModeFixed                int = 2
	SpectateModeSide                 int = 3
	PlayerRecordingTypeNone          int = 0
	PlayerRecordingTypeDriver        int = 1
	PlayerRecordingTypeOnfoot        int = 2
	CarmodtypeSpoiler                int = 0
	CarmodtypeHood                   int = 1
	CarmodtypeRoof                   int = 2
	CarmodtypeSideskirt              int = 3
	CarmodtypeLamps                  int = 4
	CarmodtypeNitro                  int = 5
	CarmodtypeExhaust                int = 6
	CarmodtypeWheels                 int = 7
	CarmodtypeStereo                 int = 8
	CarmodtypeHydraulics             int = 9
	CarmodtypeFrontBumper            int = 10
	CarmodtypeRearBumper             int = 11
	CarmodtypeVentRight              int = 12
	CarmodtypeVentLeft               int = 13
	VehicleParamsUnset               int = -1
	VehicleParamsOff                 int = 0
	VehicleParamsOn                  int = 1
	VehicleModelInfoSize             int = 1
	VehicleModelInfoFrontseat        int = 2
	VehicleModelInfoRearseat         int = 3
	VehicleModelInfoPetrolcap        int = 4
	VehicleModelInfoWheelsfront      int = 5
	VehicleModelInfoWheelsrear       int = 6
	VehicleModelInfoWheelsmid        int = 7
	VehicleModelInfoFrontBumperZ     int = 8
	VehicleModelInfoRearBumperZ      int = 9
	MaxPlayerName                    int = 24
	MaxClientMessage                 int = 144
	MaxPlayers                       int = 1000
	MaxVehicles                      int = 2000
	MaxActors                        int = 1000
	InvalidPlayerId                  int = 0xFFFF
	InvalidVehicleId                 int = 0xFFFF
	InvalidActorId                   int = 0xFFFF
	NoTeam                           int = 255
	MaxObjects                       int = 1000
	InvalidObjectId                  int = 0xFFFF
	MaxGangZones                     int = 1024
	MaxTextDraws                     int = 2048
	MaxPlayerTextDraws               int = 256
	MaxMenus                         int = 128
	Max3dtextGlobal                  int = 1024
	Max3dtextPlayer                  int = 1024
	MaxPickups                       int = 4096
	InvalidMenu                      int = 0xFF
	InvalidTextDraw                  int = 0xFFFF
	InvalidGangZone                  int = -1
	Invalid3dtextId                  int = 0xFFFF
	ServerVartypeNone                int = 0
	ServerVartypeInt                 int = 1
	ServerVartypeString              int = 2
	ServerVartypeFloat               int = 3
	TextDrawFontSpriteDraw           int = 4
	TextDrawFontModelPreview         int = 5
	DialogStyleMsgbox                int = 0
	DialogStyleInput                 int = 1
	DialogStyleList                  int = 2
	DialogStylePassword              int = 3
	DialogStyleTablist               int = 4
	DialogStyleTablistHeaders        int = 5
	PlayerStateNone                  int = 0
	PlayerStateOnfoot                int = 1
	PlayerStateDriver                int = 2
	PlayerStatePassenger             int = 3
	PlayerStateExitVehicle           int = 4
	PlayerStateEnterVehicleDriver    int = 5
	PlayerStateEnterVehiclePassenger int = 6
	PlayerStateWasted                int = 7
	PlayerStateSpawned               int = 8
	PlayerStateSpectating            int = 9
	PlayerMarkersModeOff             int = 0
	PlayerMarkersModeGlobal          int = 1
	PlayerMarkersModeStreamed        int = 2
	WeaponFist                       int = 0
	WeaponBrassknuckle               int = 1
	WeaponGolfclub                   int = 2
	WeaponNitestick                  int = 3
	WeaponKnife                      int = 4
	WeaponBat                        int = 5
	WeaponShovel                     int = 6
	WeaponPoolstick                  int = 7
	WeaponKatana                     int = 8
	WeaponChainsaw                   int = 9
	WeaponDildo                      int = 10
	WeaponDildo2                     int = 11
	WeaponVibrator                   int = 12
	WeaponVibrator2                  int = 13
	WeaponFlower                     int = 14
	WeaponCane                       int = 15
	WeaponGrenade                    int = 16
	WeaponTeargas                    int = 17
	WeaponMoltov                     int = 18
	WeaponColt45                     int = 22
	WeaponSilenced                   int = 23
	WeaponDeagle                     int = 24
	WeaponShotgun                    int = 25
	WeaponSawedoff                   int = 26
	WeaponShotgspa                   int = 27
	WeaponUzi                        int = 28
	WeaponMp5                        int = 29
	WeaponAk47                       int = 30
	WeaponM4                         int = 31
	WeaponTec9                       int = 32
	WeaponRifle                      int = 33
	WeaponSniper                     int = 34
	WeaponRocketlauncher             int = 35
	WeaponHeatseeker                 int = 36
	WeaponFlamethrower               int = 37
	WeaponMinigun                    int = 38
	WeaponSatchel                    int = 39
	WeaponBomb                       int = 40
	WeaponSpraycan                   int = 41
	WeaponFireextinguisher           int = 42
	WeaponCamera                     int = 43
	WeaponNightvision                int = 44
	WeaponInfrared                   int = 45
	WeaponParachute                  int = 46
	WeaponVehicle                    int = 49
	WeaponDrown                      int = 53
	WeaponCollision                  int = 54
	VehicleLandstalker               int = 400
	VehicleBravura                   int = 401
	VehicleBuffalo                   int = 402
	VehicleLinerunner                int = 403
	VehiclePerrenial                 int = 404
	VehicleSentinel                  int = 405
	VehicleDumper                    int = 406
	VehicleFiretruck                 int = 407
	VehicleTrashmaster               int = 408
	VehicleStretch                   int = 409
	VehicleManana                    int = 410
	VehicleInfernus                  int = 411
	VehicleVoodoo                    int = 412
	VehiclePony                      int = 413
	VehicleMule                      int = 414
	VehicleCheetah                   int = 415
	VehicleAmbulance                 int = 416
	VehicleLeviathan                 int = 417
	VehicleMoonbeam                  int = 418
	VehicleEsperanto                 int = 419
	VehicleTaxi                      int = 420
	VehicleWashington                int = 421
	VehicleBobcat                    int = 422
	VehicleMrwhoopee                 int = 423
	VehicleBfinjection               int = 424
	VehicleHunter                    int = 425
	VehiclePremier                   int = 426
	VehicleEnforcer                  int = 427
	VehicleSecuricar                 int = 428
	VehicleBanshee                   int = 429
	VehiclePredator                  int = 430
	VehicleBus                       int = 431
	VehicleRhino                     int = 432
	VehicleBarracks                  int = 433
	VehicleHotknife                  int = 434
	VehicleArticletrailer1           int = 435
	VehiclePrevion                   int = 436
	VehicleCoach                     int = 437
	VehicleCabbie                    int = 438
	VehicleStallion                  int = 439
	VehicleRumpo                     int = 440
	VehicleRcbandit                  int = 441
	VehicleRomero                    int = 442
	VehiclePacker                    int = 443
	VehicleMonster                   int = 444
	VehicleAdmiral                   int = 445
	VehicleSqualo                    int = 446
	VehicleSeasparrow                int = 447
	VehiclePizzaboy                  int = 448
	VehicleTram                      int = 449
	VehicleArticletrailer2           int = 450
	VehicleTurismo                   int = 451
	VehicleSpeeder                   int = 452
	VehicleReefer                    int = 453
	VehicleTropic                    int = 454
	VehicleFlatbed                   int = 455
	VehicleYankee                    int = 456
	VehicleCaddy                     int = 457
	VehicleSolair                    int = 458
	VehicleBerkleysrcvan             int = 459
	VehicleSkimmer                   int = 460
	VehiclePcj600                    int = 461
	VehicleFaggio                    int = 462
	VehicleFreeway                   int = 463
	VehicleRcbaron                   int = 464
	VehicleRcraider                  int = 465
	VehicleGlendale                  int = 466
	VehicleOceanic                   int = 467
	VehicleSanchez                   int = 468
	VehicleSparrow                   int = 469
	VehiclePatriot                   int = 470
	VehicleQuad                      int = 471
	VehicleCoastguard                int = 472
	VehicleDinghy                    int = 473
	VehicleHermes                    int = 474
	VehicleSabre                     int = 475
	VehicleRustler                   int = 476
	VehicleZr350                     int = 477
	VehicleWalton                    int = 478
	VehicleRegina                    int = 479
	VehicleComet                     int = 480
	VehicleBmx                       int = 481
	VehicleBurrito                   int = 482
	VehicleCamper                    int = 483
	VehicleMarquis                   int = 484
	VehicleBaggage                   int = 485
	VehicleDozer                     int = 486
	VehicleMaverick                  int = 487
	VehicleSannewsmaverick           int = 488
	VehicleRancher                   int = 489
	VehicleFbirancher                int = 490
	VehicleVirgo                     int = 491
	VehicleGreenwood                 int = 492
	VehicleJetmax                    int = 493
	VehicleHotringracer              int = 494
	VehicleSandking                  int = 495
	VehicleBlistacompact             int = 496
	VehiclePolicemaverick            int = 497
	VehicleBoxville                  int = 498
	VehicleBenson                    int = 499
	VehicleMesa                      int = 500
	VehicleRcgoblin                  int = 501
	VehicleHotringracera             int = 502
	VehicleHotringracerb             int = 503
	VehicleBloodringbanger           int = 504
	VehicleRancherlure               int = 505
	VehicleSupergt                   int = 506
	VehicleElegant                   int = 507
	VehicleJourney                   int = 508
	VehicleBike                      int = 509
	VehicleMountainbike              int = 510
	VehicleBeagle                    int = 511
	VehicleCropdust                  int = 512
	VehicleStuntplane                int = 513
	VehicleTanker                    int = 514
	VehicleRoadtrain                 int = 515
	VehicleNebula                    int = 516
	VehicleMajestic                  int = 517
	VehicleBuccaneer                 int = 518
	VehicleShamal                    int = 519
	VehicleHydra                     int = 520
	VehicleFcr900                    int = 521
	VehicleNrg500                    int = 522
	VehicleHpv1000                   int = 523
	VehicleCementtruck               int = 524
	VehicleTowtruck                  int = 525
	VehicleFortune                   int = 526
	VehicleCadrona                   int = 527
	VehicleFbitruck                  int = 528
	VehicleWillard                   int = 529
	VehicleForklift                  int = 530
	VehicleTractor                   int = 531
	VehicleCombine                   int = 532
	VehicleFeltzer                   int = 533
	VehicleRemington                 int = 534
	VehicleSlamvan                   int = 535
	VehicleBlade                     int = 536
	VehicleFreight                   int = 537
	VehicleBrownstreak               int = 538
	VehicleVortex                    int = 539
	VehicleVincent                   int = 540
	VehicleBullet                    int = 541
	VehicleClover                    int = 542
	VehicleSadler                    int = 543
	VehicleFiretruckla               int = 544
	VehicleHustler                   int = 545
	VehicleIntruder                  int = 546
	VehiclePrimo                     int = 547
	VehicleCargobob                  int = 548
	VehicleTampa                     int = 549
	VehicleSunrise                   int = 550
	VehicleMerit                     int = 551
	VehicleUtilityvan                int = 552
	VehicleNevada                    int = 553
	VehicleYosemite                  int = 554
	VehicleWindsor                   int = 555
	VehicleMonstera                  int = 556
	VehicleMonsterb                  int = 557
	VehicleUranus                    int = 558
	VehicleJester                    int = 559
	VehicleSultan                    int = 560
	VehicleStratum                   int = 561
	VehicleElegy                     int = 562
	VehicleRaindance                 int = 563
	VehicleRctiger                   int = 564
	VehicleFlash                     int = 565
	VehicleTahoma                    int = 566
	VehicleSavanna                   int = 567
	VehicleBandito                   int = 568
	VehicleFreightflattrailer        int = 569
	VehicleStreaktrailer             int = 570
	VehicleKart                      int = 571
	VehicleMower                     int = 572
	VehicleDuneride                  int = 573
	VehicleSweeper                   int = 574
	VehicleBroadway                  int = 575
	VehicleTornado                   int = 576
	VehicleAt400                     int = 577
	VehicleDft30                     int = 578
	VehicleHuntley                   int = 579
	VehicleStafford                  int = 580
	VehicleBf400                     int = 581
	VehicleNewsvan                   int = 582
	VehicleTug                       int = 583
	VehiclePetroltrailer             int = 584
	VehicleEmperor                   int = 585
	VehicleWayfarer                  int = 586
	VehicleEuros                     int = 587
	VehicleHotdog                    int = 588
	VehicleClub                      int = 589
	VehicleFreightboxtrailer         int = 590
	VehicleArticletrailer3           int = 591
	VehicleAndromada                 int = 592
	VehicleDodo                      int = 593
	VehicleRccam                     int = 594
	VehicleLaunch                    int = 595
	VehiclePolicecarlspd             int = 596
	VehiclePolicecarsfpd             int = 597
	VehiclePolicecarlvpd             int = 598
	VehiclePoliceranger              int = 599
	VehiclePicador                   int = 600
	VehicleSwat                      int = 601
	VehicleAlpha                     int = 602
	VehiclePhoenix                   int = 603
	VehicleGlendaleshit              int = 604
	VehicleSadlershit                int = 605
	VehicleBaggagetrailera           int = 606
	VehicleBaggagetrailerb           int = 607
	VehicleTugstairstrailer          int = 608
	VehicleBoxburg                   int = 609
	VehicleFarmtrailer               int = 610
	VehicleUtilitytrailer            int = 611
	KeyAction                        int = 1
	KeyCrouch                        int = 2
	KeyFire                          int = 4
	KeySprint                        int = 8
	KeySecondaryAttack               int = 16
	KeyJump                          int = 32
	KeyLookRight                     int = 64
	KeyHandbrake                     int = 128
	KeyLookLeft                      int = 256
	KeySubmission                    int = 512
	KeyLookBehind                    int = 512
	KeyWalk                          int = 1024
	KeyAnalogUp                      int = 2048
	KeyAnalogDown                    int = 4096
	KeyAnalogLeft                    int = 8192
	KeyAnalogRight                   int = 16384
	KeyYes                           int = 65536
	KeyNo                            int = 131072
	KeyCtrlBack                      int = 262144
	KeyUp                            int = -128
	KeyDown                          int = 128
	KeyLeft                          int = -128
	KeyRight                         int = 128
	BodyPartTorso                    int = 3
	BodyPartGroin                    int = 4
	BodyPartLeftArm                  int = 5
	BodyPartRightArm                 int = 6
	BodyPartLeftLeg                  int = 7
	BodyPartRightLeg                 int = 8
	BodyPartHead                     int = 9
	ClickSourceScoreboard            int = 0
	EditResponseCancel               int = 0
	EditResponseFinal                int = 1
	EditResponseUpdate               int = 2
	SelectObjectGlobalObject         int = 1
	SelectObjectPlayerObject         int = 2
	BulletHitTypeNone                int = 0
	BulletHitTypePlayer              int = 1
	BulletHitTypeVehicle             int = 2
	BulletHitTypeObject              int = 3
	BulletHitTypePlayerObject        int = 4
	DownloadRequestEmpty             int = 0
	DownloadRequestModelFile         int = 1
	DownloadRequestTextureFile       int = 2
	ObjectMaterialSize32x32          int = 10
	ObjectMaterialSize64x32          int = 20
	ObjectMaterialSize64x64          int = 30
	ObjectMaterialSize128x32         int = 40
	ObjectMaterialSize128x64         int = 50
	ObjectMaterialSize128x128        int = 60
	ObjectMaterialSize256x32         int = 70
	ObjectMaterialSize256x64         int = 80
	ObjectMaterialSize256x128        int = 90
	ObjectMaterialSize256x256        int = 100
	ObjectMaterialSize512x64         int = 110
	ObjectMaterialSize512x128        int = 120
	ObjectMaterialSize512x256        int = 130
	ObjectMaterialSize512x512        int = 140
	ObjectMaterialTextAlignLeft      int = 0
	ObjectMaterialTextAlignCenter    int = 1
	ObjectMaterialTextAlignRight     int = 2
)
View Source
const (
	FontSanAndreas = iota
	FontClear
	FontCapitalClear
	FontGTA
	FontSprite
)
View Source
const (
	SeatDriver = iota
	SeatFront
	SeatBackLeft
	SeatBackRight
)
View Source
const (
	Landstalker
	Bravura
	Buffalo
	Linerunner
	Perennial
	Sentinel
	Dumper
	Firetruck
	Trashmaster
	Stretch
	Manana
	Infernus
	Voodoo
	Pony
	Mule
	Cheetah
	Ambulance
	Leviathan
	Moonbeam
	Esperanto
	Taxi
	Washington
	Bobcat
	MrWhoopee
	BFInjection
	Hunter
	Premier
	Enforcer
	Securicar
	Banshee
	Predator
	Bus
	Rhino
	Barracks
	Hotknife
	ArticleTrailer
	Previon
	Coach
	Cabbie
	Stallion
	Rumpo
	RCBandit
	Romero
	Packer
	Monster
	Admiral
	Squalo
	Seasparrow
	Pizzaboy
	Tram
	ArticleTrailer2
	Turismo
	Speeder
	Reefer
	Tropic
	Flatbed
	Yankee
	Caddy
	Solair
	TopfunVanBerkleysRC
	Skimmer
	PCJ600
	Faggio
	Freeway
	RCBaron
	RCRaider
	Glendale
	Oceanic
	Sanchez
	Sparrow
	Patriot
	Quad
	Coastguard
	Dinghy
	Hermes
	Sabre
	Rustler
	ZR350
	Walton
	Regina
	Comet
	BMX
	Burrito
	Camper
	Marquis
	Baggage
	Dozer
	Maverick
	SANNewsMaverick
	Rancher
	FBIRancher
	Virgo
	Greenwood
	Jetmax
	HotringRacer
	Sandking
	BlistaCompact
	PoliceMaverick
	Boxville
	Benson
	Mesa
	RCGoblin
	HotringRacerA
	HotringRacerB
	BloodringBanger
	RancherLure
	SuperGT
	Elegant
	Journey
	Bike
	MountainBike
	Beagle
	Cropduster
	Stuntplane
	Tanker
	Roadtrain
	Nebula
	Majestic
	Buccaneer
	Shamal
	Hydra
	FCR900
	NRG500
	HPV1000
	CementTruck
	Towtruck
	Fortune
	Cadrona
	FBITruck
	Willard
	Forklift
	Tractor
	CombineHarvester
	Feltzer
	Remington
	Slamvan
	Blade
	FreightTrain
	BrownstreakTrain
	Vortex
	Vincent
	Bullet
	Clover
	Sadler
	FiretruckLA
	Hustler
	Intruder
	Primo
	Cargobob
	Tampa
	Sunrise
	Merit
	UtilityVan
	Nevada
	Yosemite
	Windsor
	MonsterA
	MonsterB
	Uranus
	Jester
	Sultan
	Stratum
	Elegy
	Raindance
	RCTiger
	Flash
	Tahoma
	Savanna
	Bandito
	FreightFlatTrailerTrain
	StreakTrailerTrain
	Kart
	Mower
	Dune
	Sweeper
	Broadway
	Tornado
	AT400
	DFT30
	Huntley
	Stafford
	BF400
	Newsvan
	Tug
	PetrolTrailer
	Emperor
	Wayfarer
	Euros
	Hotdog
	Club
	FreightBoxTrailerTrain
	ArticleTrailer3
	Andromada
	Dodo
	RCCam
	Launch
	PoliceCarLSPD
	PoliceCarSFPD
	PoliceCarLVPD
	PoliceRanger
	Picador
	SWAT
	Alpha
	Phoenix
	GlendaleShit
	SadlerShit
	BaggageTrailerA
	BaggageTrailerB
	TugStairsTrailer
	Boxville2
	FarmTrailer
	UtilityTrailer
)

Variables

View Source
var SetBackgroundColour = (*PlayerTextDraw).SetBackgroundColor
View Source
var SetBoxColour = (*PlayerTextDraw).SetBoxColor
View Source
var SetColour = (*PlayerTextDraw).SetColor

Functions

func AddCharModel

func AddCharModel(baseid, newid int, dffname, txdname string) int

For documentation, please visit https://open.mp/docs/scripting/functions/AddCharModel

func AddMenuItem

func AddMenuItem(menuid, column int, menutext string) int

For documentation, please visit https://open.mp/docs/scripting/functions/AddMenuItem

func AddPlayerClass

func AddPlayerClass(modelid int, spawn_x, spawn_y, spawn_z, z_angle float32, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo int) int

For documentation, please visit https://open.mp/docs/scripting/functions/AddPlayerClass

func AddPlayerClassEx

func AddPlayerClassEx(teamid, modelid int, spawn_x, spawn_y, spawn_z, z_angle float32, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo int) int

For documentation, please visit https://open.mp/docs/scripting/functions/AddPlayerClassEx

func AddSimpleModel

func AddSimpleModel(virtualworld, baseid, newid int, dffname, txdname string) int

For documentation, please visit https://open.mp/docs/scripting/functions/AddSimpleModel

func AddSimpleModelTimed

func AddSimpleModelTimed(virtualworld, baseid, newid int, dffname, txdname string, timeon, timeoff int) int

For documentation, please visit https://open.mp/docs/scripting/functions/AddSimpleModelTimed

func AddStaticPickup

func AddStaticPickup(model, type_ int, x, y, z float32, virtualworld int) int

For documentation, please visit https://open.mp/docs/scripting/functions/AddStaticPickup

func AddStaticVehicle

func AddStaticVehicle(modelid int, spawn_x, spawn_y, spawn_z, z_angle float32, color1, color2 int) int

For documentation, please visit https://open.mp/docs/scripting/functions/AddStaticVehicle

func AddStaticVehicleEx

func AddStaticVehicleEx(modelid int, spawn_x, spawn_y, spawn_z, z_angle float32, color1, color2, respawn_delay int, addsiren bool) int

For documentation, please visit https://open.mp/docs/scripting/functions/AddStaticVehicleEx

func AddVehicleComponent

func AddVehicleComponent(vehicleid, componentid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/AddVehicleComponent

func AllowAdminTeleport

func AllowAdminTeleport(allow bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/AllowAdminTeleport

func AllowInteriorWeapons

func AllowInteriorWeapons(allow bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/AllowInteriorWeapons

func AllowPlayerTeleport

func AllowPlayerTeleport(playerid int, allow bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/AllowPlayerTeleport

func ApplyActorAnimation

func ApplyActorAnimation(actorid int, animlib, animname string, fDelta float32, loop, lockx, locky, freeze bool, time int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/ApplyActorAnimation

func ApplyAnimation

func ApplyAnimation(playerid int, animlib, animname string, fDelta float32, loop, lockx, locky, freeze bool, time int, forcesync bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/ApplyAnimation

func Attach3DTextLabelToPlayer

func Attach3DTextLabelToPlayer(id, playerid int, OffsetX, OffsetY, OffsetZ float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/Attach3DTextLabelToPlayer

func Attach3DTextLabelToVehicle

func Attach3DTextLabelToVehicle(id, vehicleid int, OffsetX, OffsetY, OffsetZ float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/Attach3DTextLabelToVehicle

func AttachCameraToObject

func AttachCameraToObject(playerid, objectid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/AttachCameraToObject

func AttachCameraToPlayerObject

func AttachCameraToPlayerObject(playerid, playerobjectid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/AttachCameraToPlayerObject

func AttachObjectToObject

func AttachObjectToObject(objectid, attachtoid int, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ float32, SyncRotation bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/AttachObjectToObject

func AttachObjectToPlayer

func AttachObjectToPlayer(objectid, playerid int, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/AttachObjectToPlayer

func AttachObjectToVehicle

func AttachObjectToVehicle(objectid, vehicleid int, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/AttachObjectToVehicle

func AttachPlayerObjectToPlayer

func AttachPlayerObjectToPlayer(objectplayer, objectid, attachplayer int, OffsetX, OffsetY, OffsetZ, rX, rY, rZ float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/AttachPlayerObjectToPlayer

func AttachPlayerObjectToVehicle

func AttachPlayerObjectToVehicle(playerid, objectid, vehicleid int, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, RotZ float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/AttachPlayerObjectToVehicle

func AttachTrailerToVehicle

func AttachTrailerToVehicle(trailerid, vehicleid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/AttachTrailerToVehicle

func Ban

func Ban(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/Ban

func BanEx

func BanEx(playerid int, reason string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/BanEx

func BlockIpAddress

func BlockIpAddress(ip_address string, timems int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/BlockIpAddress

func CancelEdit

func CancelEdit(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/CancelEdit

func CancelSelectTextDraw

func CancelSelectTextDraw(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/CancelSelectTextDraw

func ChangeVehicleColor

func ChangeVehicleColor(vehicleid, color1, color2 int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/ChangeVehicleColor

func ChangeVehiclePaintjob

func ChangeVehiclePaintjob(vehicleid, paintjobid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/ChangeVehiclePaintjob

func ClearActorAnimations

func ClearActorAnimations(actorid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/ClearActorAnimations

func ClearAnimations

func ClearAnimations(playerid int, forcesync bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/ClearAnimations

func ConnectNPC

func ConnectNPC(name, script string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/ConnectNPC

func Create3DTextLabel

func Create3DTextLabel(text string, color int64, x, y, z, DrawDistance float32, virtualworld int, testLOS bool) int

For documentation, please visit https://open.mp/docs/scripting/functions/Create3DTextLabel

func CreateActor

func CreateActor(modelid int, x, y, z, rotation float32) int

For documentation, please visit https://open.mp/docs/scripting/functions/CreateActor

func CreateExplosion

func CreateExplosion(x, y, z float32, type_ int, radius float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/CreateExplosion

func CreateExplosionForPlayer

func CreateExplosionForPlayer(playerid int, X, Y, Z float32, type_ int, Radius float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/CreateExplosionForPlayer

func CreateMenu

func CreateMenu(title string, columns int, x float32, y float32, col1width float32, col2width float32) int

For documentation, please visit https://open.mp/docs/scripting/functions/CreateMenu

func CreateObject

func CreateObject(modelid int, x, y, z, rX, rY, rZ, DrawDistance float32) int

For documentation, please visit https://open.mp/docs/scripting/functions/CreateObject

func CreatePickup

func CreatePickup(model, type_ int, x, y, z float32, virtualworld int) int

For documentation, please visit https://open.mp/docs/scripting/functions/CreatePickup

func CreatePlayer3DTextLabel

func CreatePlayer3DTextLabel(playerid int, text string, color int64, x, y, z, DrawDistance float32, attachedplayer, attachedvehicle int, testLOS bool) int

For documentation, please visit https://open.mp/docs/scripting/functions/CreatePlayer3DTextLabel

func CreatePlayerObject

func CreatePlayerObject(playerid, modelid int, x, y, z, rX, rY, rZ, DrawDistance float32) int

For documentation, please visit https://open.mp/docs/scripting/functions/CreatePlayerObject

func CreatePlayerTextDraw

func CreatePlayerTextDraw(playerid int, x, y float32, text string) int

For documentation, please visit https://open.mp/docs/scripting/functions/CreatePlayerTextDraw

func CreateVehicle

func CreateVehicle(vehicletype int, x, y, z, rotation float32, color1, color2, respawn_delay int, addsiren bool) int

For documentation, please visit https://open.mp/docs/scripting/functions/CreateVehicle

func Delete3DTextLabel

func Delete3DTextLabel(id int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/Delete3DTextLabel

func DeletePVar

func DeletePVar(playerid int, varname string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/DeletePVar

func DeletePlayer3DTextLabel

func DeletePlayer3DTextLabel(playerid, id int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/DeletePlayer3DTextLabel

func DeleteSVar

func DeleteSVar(varname string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/DeleteSVar

func DestroyActor

func DestroyActor(actorid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/DestroyActor

func DestroyMenu

func DestroyMenu(menuid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/DestroyMenu

func DestroyObject

func DestroyObject(objectid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/DestroyObject

func DestroyPickup

func DestroyPickup(pickup int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/DestroyPickup

func DestroyPlayerObject

func DestroyPlayerObject(playerid, objectid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/DestroyPlayerObject

func DestroyVehicle

func DestroyVehicle(vehicleid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/DestroyVehicle

func DetachTrailerFromVehicle

func DetachTrailerFromVehicle(vehicleid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/DetachTrailerFromVehicle

func DisableInteriorEnterExits

func DisableInteriorEnterExits() bool

For documentation, please visit https://open.mp/docs/scripting/functions/DisableInteriorEnterExits

func DisableMenu

func DisableMenu(menuid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/DisableMenu

func DisableMenuRow

func DisableMenuRow(menuid, row int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/DisableMenuRow

func DisableNameTagLOS

func DisableNameTagLOS() bool

For documentation, please visit https://open.mp/docs/scripting/functions/DisableNameTagLOS

func DisablePlayerCheckpoint

func DisablePlayerCheckpoint(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/DisablePlayerCheckpoint

func DisablePlayerRaceCheckpoint

func DisablePlayerRaceCheckpoint(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/DisablePlayerRaceCheckpoint

func DisableRemoteVehicleCollisions

func DisableRemoteVehicleCollisions(playerid int, disable bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/DisableRemoteVehicleCollisions

func EditAttachedObject

func EditAttachedObject(playerid, index int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/EditAttachedObject

func EditObject

func EditObject(playerid, objectid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/EditObject

func EditPlayerObject

func EditPlayerObject(playerid, objectid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/EditPlayerObject

func EnablePlayerCameraTarget

func EnablePlayerCameraTarget(playerid int, enable bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/EnablePlayerCameraTarget

func EnableStuntBonusForAll

func EnableStuntBonusForAll(enable bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/EnableStuntBonusForAll

func EnableStuntBonusForPlayer

func EnableStuntBonusForPlayer(playerid int, enable bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/EnableStuntBonusForPlayer

func EnableTirePopping

func EnableTirePopping(enable bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/EnableTirePopping

func EnableVehicleFriendlyFire

func EnableVehicleFriendlyFire() bool

For documentation, please visit https://open.mp/docs/scripting/functions/EnableVehicleFriendlyFire

func EnableZoneNames

func EnableZoneNames(enable bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/EnableZoneNames

func FindModelFileNameFromCRC

func FindModelFileNameFromCRC(crc int, model_str *string, model_str_len int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/FindModelFileNameFromCRC

func FindTextureFileNameFromCRC

func FindTextureFileNameFromCRC(crc int, texture_str *string, texture_str_len int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/FindTextureFileNameFromCRC

func ForceClassSelection

func ForceClassSelection(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/ForceClassSelection

func GameModeExit

func GameModeExit() bool

For documentation, please visit https://open.mp/docs/scripting/functions/GameModeExit

func GameTextForAll

func GameTextForAll(text string, time, style int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GameTextForAll

func GameTextForPlayer

func GameTextForPlayer(playerid int, text string, time, style int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GameTextForPlayer

func GangZoneCreate

func GangZoneCreate(minx, miny, maxx, maxy float32) int

For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneCreate

func GangZoneDestroy

func GangZoneDestroy(zone int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneDestroy

func GangZoneFlashForAll

func GangZoneFlashForAll(zone, flashcolor int64) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneFlashForAll

func GangZoneFlashForPlayer

func GangZoneFlashForPlayer(playerid, zone, flashcolor int64) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneFlashForPlayer

func GangZoneHideForAll

func GangZoneHideForAll(zone int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneHideForAll

func GangZoneHideForPlayer

func GangZoneHideForPlayer(playerid, zone int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneHideForPlayer

func GangZoneShowForAll

func GangZoneShowForAll(zone, color int64) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneShowForAll

func GangZoneShowForPlayer

func GangZoneShowForPlayer(playerid, zone, color int64) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneShowForPlayer

func GangZoneStopFlashForAll

func GangZoneStopFlashForAll(zone int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneStopFlashForAll

func GangZoneStopFlashForPlayer

func GangZoneStopFlashForPlayer(playerid, zone int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneStopFlashForPlayer

func GetActorFacingAngle

func GetActorFacingAngle(actorid int, angle *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetActorFacingAngle

func GetActorHealth

func GetActorHealth(actorid int, health *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetActorHealth

func GetActorPoolSize

func GetActorPoolSize() int

For documentation, please visit https://open.mp/docs/scripting/functions/GetActorPoolSize

func GetActorPos

func GetActorPos(actorid int, x, y, z *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetActorPos

func GetActorVirtualWorld

func GetActorVirtualWorld(actorid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetActorVirtualWorld

func GetAnimationName

func GetAnimationName(index int, animlib *string, animlib_size int, animname *string, animname_size int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetAnimationName

func GetConsoleVarAsBool

func GetConsoleVarAsBool(varname string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetConsoleVarAsBool

func GetConsoleVarAsInt

func GetConsoleVarAsInt(varname string) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetConsoleVarAsInt

func GetConsoleVarAsString

func GetConsoleVarAsString(varname string, buffer *string, len_ int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetConsoleVarAsString

func GetGravity

func GetGravity() float32

For documentation, please visit https://open.mp/docs/scripting/functions/GetGravity

func GetMaxPlayers

func GetMaxPlayers() int

For documentation, please visit https://open.mp/docs/scripting/functions/GetMaxPlayers

func GetNetworkStats

func GetNetworkStats(retstr *string, size int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetNetworkStats

func GetObjectModel

func GetObjectModel(objectid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetObjectModel

func GetObjectPos

func GetObjectPos(objectid int, x, y, z *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetObjectPos

func GetObjectRot

func GetObjectRot(objectid int, rotX, rotY, rotZ *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetObjectRot

func GetPVarFloat

func GetPVarFloat(playerid int, varname string) float32

For documentation, please visit https://open.mp/docs/scripting/functions/GetPVarFloat

func GetPVarInt

func GetPVarInt(playerid int, varname string) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPVarInt

func GetPVarNameAtIndex

func GetPVarNameAtIndex(playerid, index int, varname *string, size int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPVarNameAtIndex

func GetPVarString

func GetPVarString(playerid int, varname string, value *string, size int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPVarString

func GetPVarType

func GetPVarType(playerid int, varname string) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPVarType

func GetPVarsUpperIndex

func GetPVarsUpperIndex(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPVarsUpperIndex

func GetPlayerAmmo

func GetPlayerAmmo(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerAmmo

func GetPlayerAnimationIndex

func GetPlayerAnimationIndex(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerAnimationIndex

func GetPlayerArmour

func GetPlayerArmour(playerid int, armour *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerArmour

func GetPlayerCameraAspectRatio

func GetPlayerCameraAspectRatio(playerid int) float32

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraAspectRatio

func GetPlayerCameraFrontVector

func GetPlayerCameraFrontVector(playerid int, x, y, z *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraFrontVector

func GetPlayerCameraMode

func GetPlayerCameraMode(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraMode

func GetPlayerCameraPos

func GetPlayerCameraPos(playerid int, x, y, z *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraPos

func GetPlayerCameraTargetActor

func GetPlayerCameraTargetActor(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraTargetActor

func GetPlayerCameraTargetObject

func GetPlayerCameraTargetObject(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraTargetObject

func GetPlayerCameraTargetPlayer

func GetPlayerCameraTargetPlayer(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraTargetPlayer

func GetPlayerCameraTargetVehicle

func GetPlayerCameraTargetVehicle(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraTargetVehicle

func GetPlayerCameraZoom

func GetPlayerCameraZoom(playerid int) float32

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraZoom

func GetPlayerColor

func GetPlayerColor(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerColor

func GetPlayerDistanceFromPoint

func GetPlayerDistanceFromPoint(playerid int, x, y, z float32) float32

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerDistanceFromPoint

func GetPlayerDrunkLevel

func GetPlayerDrunkLevel(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerDrunkLevel

func GetPlayerFacingAngle

func GetPlayerFacingAngle(playerid int, angle *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerFacingAngle

func GetPlayerFightingStyle

func GetPlayerFightingStyle(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerFightingStyle

func GetPlayerHealth

func GetPlayerHealth(playerid int, health *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerHealth

func GetPlayerInterior

func GetPlayerInterior(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerInterior

func GetPlayerIp

func GetPlayerIp(playerid int, ip *string, size int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerIp

func GetPlayerKeys

func GetPlayerKeys(playerid int, keys, updown, leftright *int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerKeys

func GetPlayerLastShotVectors

func GetPlayerLastShotVectors(playerid int, fOriginX, fOriginY, fOriginZ, fHitPosX, fHitPosY, fHitPosZ *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerLastShotVectors

func GetPlayerMenu

func GetPlayerMenu(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerMenu

func GetPlayerMoney

func GetPlayerMoney(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerMoney

func GetPlayerName

func GetPlayerName(playerid int, name *string, size int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerName

func GetPlayerNetworkStats

func GetPlayerNetworkStats(playerid int, retstr *string, size int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerNetworkStats

func GetPlayerObjectModel

func GetPlayerObjectModel(playerid, objectid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerObjectModel

func GetPlayerObjectPos

func GetPlayerObjectPos(playerid, objectid int, x, y, z *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerObjectPos

func GetPlayerObjectRot

func GetPlayerObjectRot(playerid, objectid int, rotX, rotY, rotZ *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerObjectRot

func GetPlayerPing

func GetPlayerPing(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerPing

func GetPlayerPoolSize

func GetPlayerPoolSize() int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerPoolSize

func GetPlayerPos

func GetPlayerPos(playerid int, x, y, z *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerPos

func GetPlayerScore

func GetPlayerScore(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerScore

func GetPlayerSkin

func GetPlayerSkin(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerSkin

func GetPlayerSpecialAction

func GetPlayerSpecialAction(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerSpecialAction

func GetPlayerState

func GetPlayerState(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerState

func GetPlayerSurfingObjectID

func GetPlayerSurfingObjectID(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerSurfingObjectID

func GetPlayerSurfingVehicleID

func GetPlayerSurfingVehicleID(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerSurfingVehicleID

func GetPlayerTargetActor

func GetPlayerTargetActor(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerTargetActor

func GetPlayerTargetPlayer

func GetPlayerTargetPlayer(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerTargetPlayer

func GetPlayerTeam

func GetPlayerTeam(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerTeam

func GetPlayerTime

func GetPlayerTime(playerid int, hour *int, minute *int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerTime

func GetPlayerVehicleID

func GetPlayerVehicleID(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerVehicleID

func GetPlayerVehicleSeat

func GetPlayerVehicleSeat(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerVehicleSeat

func GetPlayerVelocity

func GetPlayerVelocity(playerid int, x, y, z *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerVelocity

func GetPlayerVersion

func GetPlayerVersion(playerid int, version *string, len_ int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerVersion

func GetPlayerVirtualWorld

func GetPlayerVirtualWorld(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerVirtualWorld

func GetPlayerWantedLevel

func GetPlayerWantedLevel(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerWantedLevel

func GetPlayerWeapon

func GetPlayerWeapon(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerWeapon

func GetPlayerWeaponData

func GetPlayerWeaponData(playerid, slot int, weapon, ammo *int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerWeaponData

func GetPlayerWeaponState

func GetPlayerWeaponState(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerWeaponState

func GetSVarFloat

func GetSVarFloat(varname string) float32

For documentation, please visit https://open.mp/docs/scripting/functions/GetSVarFloat

func GetSVarInt

func GetSVarInt(varname string) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetSVarInt

func GetSVarNameAtIndex

func GetSVarNameAtIndex(index int, ret_varname *string, ret_len int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetSVarNameAtIndex

func GetSVarString

func GetSVarString(varname string, string_return *string, len_ int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetSVarString

func GetSVarType

func GetSVarType(varname string) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetSVarType

func GetSVarsUpperIndex

func GetSVarsUpperIndex() int

For documentation, please visit https://open.mp/docs/scripting/functions/GetSVarsUpperIndex

func GetServerTickRate

func GetServerTickRate() int

For documentation, please visit https://open.mp/docs/scripting/functions/GetServerTickRate

func GetServerVarAsBool

func GetServerVarAsBool(varname string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetServerVarAsBool

func GetServerVarAsInt

func GetServerVarAsInt(varname string) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetServerVarAsInt

func GetServerVarAsString

func GetServerVarAsString(varname string, value *string, size int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetServerVarAsString

func GetTickCount

func GetTickCount() int

For documentation, please visit https://open.mp/docs/scripting/functions/GetTickCount

func GetVehicleComponentInSlot

func GetVehicleComponentInSlot(vehicleid, slot int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleComponentInSlot

func GetVehicleComponentType

func GetVehicleComponentType(component int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleComponentType

func GetVehicleDamageStatus

func GetVehicleDamageStatus(vehicleid int, panels, doors, lights, tires *int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleDamageStatus

func GetVehicleDistanceFromPoint

func GetVehicleDistanceFromPoint(vehicleid int, x, y, z float32) float32

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleDistanceFromPoint

func GetVehicleHealth

func GetVehicleHealth(vehicleid int, health *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleHealth

func GetVehicleModel

func GetVehicleModel(vehicleid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleModel

func GetVehicleModelInfo

func GetVehicleModelInfo(model, infotype int, X, Y, Z *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleModelInfo

func GetVehicleModelName

func GetVehicleModelName(modelid int) string

func GetVehicleParamsCarDoors

func GetVehicleParamsCarDoors(vehicleid int, driver, passenger, backleft, backright *int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleParamsCarDoors

func GetVehicleParamsCarWindows

func GetVehicleParamsCarWindows(vehicleid int, driver, passenger, backleft, backright *int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleParamsCarWindows

func GetVehicleParamsEx

func GetVehicleParamsEx(vehicleid int, engine, lights, alarm, doors, bonnet, boot, objective *int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleParamsEx

func GetVehicleParamsSirenState

func GetVehicleParamsSirenState(vehicleid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleParamsSirenState

func GetVehiclePoolSize

func GetVehiclePoolSize() int

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehiclePoolSize

func GetVehiclePos

func GetVehiclePos(vehicleid int, x, y, z *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehiclePos

func GetVehicleRotationQuat

func GetVehicleRotationQuat(vehicleid int, w, x, y, z *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleRotationQuat

func GetVehicleTrailer

func GetVehicleTrailer(vehicleid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleTrailer

func GetVehicleVelocity

func GetVehicleVelocity(vehicleid int, X, Y, Z *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleVelocity

func GetVehicleVirtualWorld

func GetVehicleVirtualWorld(vehicleid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleVirtualWorld

func GetVehicleZAngle

func GetVehicleZAngle(vehicleid int, z_angle *float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleZAngle

func GetWeaponName

func GetWeaponName(weaponid int, name *string, size int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GetWeaponName

func GivePlayerMoney

func GivePlayerMoney(playerid int, money int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GivePlayerMoney

func GivePlayerWeapon

func GivePlayerWeapon(playerid, weaponid, ammo int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/GivePlayerWeapon

func HideMenuForPlayer

func HideMenuForPlayer(menuid, playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/HideMenuForPlayer

func InterpolateCameraLookAt

func InterpolateCameraLookAt(playerid int, FromX, FromY, FromZ, ToX, ToY, ToZ float32, time, cut int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/InterpolateCameraLookAt

func InterpolateCameraPos

func InterpolateCameraPos(playerid int, FromX, FromY, FromZ, ToX, ToY, ToZ float32, time, cut int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/InterpolateCameraPos

func IsActorInvulnerable

func IsActorInvulnerable(actorid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsActorInvulnerable

func IsActorStreamedIn

func IsActorStreamedIn(actorid, forplayerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsActorStreamedIn

func IsObjectMoving

func IsObjectMoving(objectid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsObjectMoving

func IsPlayerAdmin

func IsPlayerAdmin(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerAdmin

func IsPlayerAttachedObjectSlotUsed

func IsPlayerAttachedObjectSlotUsed(playerid, index int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerAttachedObjectSlotUsed

func IsPlayerConnected

func IsPlayerConnected(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerConnected

func IsPlayerInAnyVehicle

func IsPlayerInAnyVehicle(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerInAnyVehicle

func IsPlayerInCheckpoint

func IsPlayerInCheckpoint(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerInCheckpoint

func IsPlayerInRaceCheckpoint

func IsPlayerInRaceCheckpoint(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerInRaceCheckpoint

func IsPlayerInRangeOfPoint

func IsPlayerInRangeOfPoint(playerid int, range_, x, y, z float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerInRangeOfPoint

func IsPlayerInVehicle

func IsPlayerInVehicle(playerid int, vehicleid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerInVehicle

func IsPlayerNPC

func IsPlayerNPC(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerNPC

func IsPlayerObjectMoving

func IsPlayerObjectMoving(playerid, objectid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerObjectMoving

func IsPlayerStreamedIn

func IsPlayerStreamedIn(playerid int, forplayerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerStreamedIn

func IsTrailerAttachedToVehicle

func IsTrailerAttachedToVehicle(vehicleid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsTrailerAttachedToVehicle

func IsValidActor

func IsValidActor(actorid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsValidActor

func IsValidMenu

func IsValidMenu(menuid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsValidMenu

func IsValidObject

func IsValidObject(objectid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsValidObject

func IsValidPlayerObject

func IsValidPlayerObject(playerid, objectid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsValidPlayerObject

func IsValidVehicle

func IsValidVehicle(vehicleid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsValidVehicle

func IsValidVehicleModel

func IsValidVehicleModel(modelid int) bool

func IsValidVehicleModelName

func IsValidVehicleModelName(model string) bool

func IsVehicleStreamedIn

func IsVehicleStreamedIn(vehicleid, forplayerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/IsVehicleStreamedIn

func Kick

func Kick(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/Kick

func LimitGlobalChatRadius

func LimitGlobalChatRadius(chat_radius float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/LimitGlobalChatRadius

func LimitPlayerMarkerRadius

func LimitPlayerMarkerRadius(marker_radius float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/LimitPlayerMarkerRadius

func LinkVehicleToInterior

func LinkVehicleToInterior(vehicleid, interiorid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/LinkVehicleToInterior

func ManualVehicleEngineAndLights

func ManualVehicleEngineAndLights() bool

For documentation, please visit https://open.mp/docs/scripting/functions/ManualVehicleEngineAndLights

func MoveObject

func MoveObject(objectid int, X, Y, Z, Speed, RotX, RotY, RotZ float32) int

For documentation, please visit https://open.mp/docs/scripting/functions/MoveObject

func MovePlayerObject

func MovePlayerObject(playerid, objectid int, x, y, z, Speed, RotX, RotY, RotZ float32) int

For documentation, please visit https://open.mp/docs/scripting/functions/MovePlayerObject

func NetStats_BytesReceived

func NetStats_BytesReceived(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_BytesReceived

func NetStats_BytesSent

func NetStats_BytesSent(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_BytesSent

func NetStats_ConnectionStatus

func NetStats_ConnectionStatus(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_ConnectionStatus

func NetStats_GetConnectedTime

func NetStats_GetConnectedTime(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_GetConnectedTime

func NetStats_GetIpPort

func NetStats_GetIpPort(playerid int, ip_port *string, ip_port_len int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_GetIpPort

func NetStats_MessagesReceived

func NetStats_MessagesReceived(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_MessagesReceived

func NetStats_MessagesRecvPerSecond

func NetStats_MessagesRecvPerSecond(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_MessagesRecvPerSecond

func NetStats_MessagesSent

func NetStats_MessagesSent(playerid int) int

For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_MessagesSent

func NetStats_PacketLossPercent

func NetStats_PacketLossPercent(playerid int) float32

For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_PacketLossPercent

func On

func On(eventName string, handler interface{}) error

On registers an event with a handler.

func Once

func Once(eventName string, handler interface{}) error

Once registers an event with a handler one time only.

func PlayAudioStreamForPlayer

func PlayAudioStreamForPlayer(playerid int, url string, posX, posY, posZ, distance float32, usepos bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayAudioStreamForPlayer

func PlayCrimeReportForPlayer

func PlayCrimeReportForPlayer(playerid, suspectid, crime int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayCrimeReportForPlayer

func PlayerPlaySound

func PlayerPlaySound(playerid, soundid int, x, y, z float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerPlaySound

func PlayerSpectatePlayer

func PlayerSpectatePlayer(playerid, targetplayerid, mode int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerSpectatePlayer

func PlayerSpectateVehicle

func PlayerSpectateVehicle(playerid, targetvehicleid, mode int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerSpectateVehicle

func PlayerTextDrawAlignment

func PlayerTextDrawAlignment(playerid, textid, alignment int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawAlignment

func PlayerTextDrawBackgroundColor

func PlayerTextDrawBackgroundColor(playerid, textid, color int64) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawBackgroundColor

func PlayerTextDrawBoxColor

func PlayerTextDrawBoxColor(playerid, textid, color int64) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawBoxColor

func PlayerTextDrawColor

func PlayerTextDrawColor(playerid, textid, color int64) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawColor

func PlayerTextDrawDestroy

func PlayerTextDrawDestroy(playerid int, textid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawDestroy

func PlayerTextDrawFont

func PlayerTextDrawFont(playerid, textid, font int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawFont

func PlayerTextDrawHide

func PlayerTextDrawHide(playerid, textid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawHide

func PlayerTextDrawLetterSize

func PlayerTextDrawLetterSize(playerid, textid int, x, y float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawLetterSize

func PlayerTextDrawSetOutline

func PlayerTextDrawSetOutline(playerid, textid, size int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawSetOutline

func PlayerTextDrawSetPreviewModel

func PlayerTextDrawSetPreviewModel(playerid, textid, modelindex int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawSetPreviewModel

func PlayerTextDrawSetPreviewRot

func PlayerTextDrawSetPreviewRot(playerid, textid int, fRotX, fRotY, fRotZ, fZoom float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawSetPreviewRot

func PlayerTextDrawSetPreviewVehCol

func PlayerTextDrawSetPreviewVehCol(playerid, textid, color1, color2 int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawSetPreviewVehCol

func PlayerTextDrawSetProportional

func PlayerTextDrawSetProportional(playerid, textid int, set bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawSetProportional

func PlayerTextDrawSetSelectable

func PlayerTextDrawSetSelectable(playerid, textid int, set bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawSetSelectable

func PlayerTextDrawSetShadow

func PlayerTextDrawSetShadow(playerid, textid, size int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawSetShadow

func PlayerTextDrawSetString

func PlayerTextDrawSetString(playerid, textid int, text string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawSetString

func PlayerTextDrawShow

func PlayerTextDrawShow(playerid, textid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawShow

func PlayerTextDrawTextSize

func PlayerTextDrawTextSize(playerid, textid int, x, y float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawTextSize

func PlayerTextDrawUseBox

func PlayerTextDrawUseBox(playerid, textid int, use bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawUseBox

func Print

func Print(msg string) error

Print allows you to print to the SAMP console.

func PutPlayerInVehicle

func PutPlayerInVehicle(playerid, vehicleid, seatid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/PutPlayerInVehicle

func RedirectDownload

func RedirectDownload(playerid int, url string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/RedirectDownload

func RemoveBuildingForPlayer

func RemoveBuildingForPlayer(playerid, modelid int, fX, fY, fZ, fRadius float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/RemoveBuildingForPlayer

func RemovePlayerAttachedObject

func RemovePlayerAttachedObject(playerid, index int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/RemovePlayerAttachedObject

func RemovePlayerFromVehicle

func RemovePlayerFromVehicle(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/RemovePlayerFromVehicle

func RemovePlayerMapIcon

func RemovePlayerMapIcon(playerid, iconid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/RemovePlayerMapIcon

func RemoveVehicleComponent

func RemoveVehicleComponent(vehicleid, componentid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/RemoveVehicleComponent

func RepairVehicle

func RepairVehicle(vehicleid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/RepairVehicle

func ResetPlayerMoney

func ResetPlayerMoney(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/ResetPlayerMoney

func ResetPlayerWeapons

func ResetPlayerWeapons(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/ResetPlayerWeapons

func SHA256_PassHash

func SHA256_PassHash(password, salt string, ret_hash *string, ret_hash_len int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SHA256_PassHash

func SelectObject

func SelectObject(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SelectObject

func SelectTextDraw

func SelectTextDraw(playerid, hovercolor int64) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SelectTextDraw

func SendClientMessage

func SendClientMessage(playerid, color int64, message string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SendClientMessage

func SendClientMessageToAll

func SendClientMessageToAll(color int64, message string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SendClientMessageToAll

func SendDeathMessage

func SendDeathMessage(killer, killee, weapon int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SendDeathMessage

func SendDeathMessageToPlayer

func SendDeathMessageToPlayer(playerid, killer, killee, weapon int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SendDeathMessageToPlayer

func SendPlayerMessageToAll

func SendPlayerMessageToAll(senderid int, message string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SendPlayerMessageToAll

func SendPlayerMessageToPlayer

func SendPlayerMessageToPlayer(playerid, senderid int, message string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SendPlayerMessageToPlayer

func SendRconCommand

func SendRconCommand(command string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SendRconCommand

func SetActorFacingAngle

func SetActorFacingAngle(actorid int, angle float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetActorFacingAngle

func SetActorHealth

func SetActorHealth(actorid int, health float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetActorHealth

func SetActorInvulnerable

func SetActorInvulnerable(actorid int, invulnerable bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetActorInvulnerable

func SetActorPos

func SetActorPos(actorid int, x, y, z float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetActorPos

func SetActorVirtualWorld

func SetActorVirtualWorld(actorid, vworld int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetActorVirtualWorld

func SetCameraBehindPlayer

func SetCameraBehindPlayer(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetCameraBehindPlayer

func SetDeathDropAmount

func SetDeathDropAmount(amount int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetDeathDropAmount

func SetGameModeText

func SetGameModeText(text string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetGameModeText

func SetGravity

func SetGravity(gravity float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetGravity

func SetMenuColumnHeader

func SetMenuColumnHeader(menuid, column int, columnheader string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetMenuColumnHeader

func SetNameTagDrawDistance

func SetNameTagDrawDistance(distance float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetNameTagDrawDistance

func SetObjectMaterial

func SetObjectMaterial(objectid, materialindex, modelid int, txdname, texturename string, materialcolor int64) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetObjectMaterial

func SetObjectMaterialText

func SetObjectMaterialText(objectid int, text string, materialindex, materialsize int, fontface string, fontsize int, bold bool, fontcolor, backcolor, textalignment int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetObjectMaterialText

func SetObjectNoCameraCol

func SetObjectNoCameraCol(objectid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetObjectNoCameraCol

func SetObjectPos

func SetObjectPos(objectid int, x, y, z float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetObjectPos

func SetObjectRot

func SetObjectRot(objectid int, rotX, rotY, rotZ float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetObjectRot

func SetObjectsDefaultCameraCol

func SetObjectsDefaultCameraCol(disable bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetObjectsDefaultCameraCol

func SetPVarFloat

func SetPVarFloat(playerid int, varname string, value float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPVarFloat

func SetPVarInt

func SetPVarInt(playerid int, varname string, value int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPVarInt

func SetPVarString

func SetPVarString(playerid int, varname, value string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPVarString

func SetPlayerAmmo

func SetPlayerAmmo(playerid, weaponid, ammo int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerAmmo

func SetPlayerArmedWeapon

func SetPlayerArmedWeapon(playerid, weaponid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerArmedWeapon

func SetPlayerArmour

func SetPlayerArmour(playerid int, armour float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerArmour

func SetPlayerAttachedObject

func SetPlayerAttachedObject(playerid, index, modelid, bone int, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ, fScaleX, fScaleY, fScaleZ float32, materialcolor1, materialcolor2 int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerAttachedObject

func SetPlayerCameraLookAt

func SetPlayerCameraLookAt(playerid int, x, y, z float32, cut int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerCameraLookAt

func SetPlayerCameraPos

func SetPlayerCameraPos(playerid int, x, y, z float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerCameraPos

func SetPlayerChatBubble

func SetPlayerChatBubble(playerid int, text string, color int64, drawdistance float32, expiretime int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerChatBubble

func SetPlayerCheckpoint

func SetPlayerCheckpoint(playerid int, x, y, z, size float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerCheckpoint

func SetPlayerColor

func SetPlayerColor(playerid, color int64) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerColor

func SetPlayerDrunkLevel

func SetPlayerDrunkLevel(playerid, level int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerDrunkLevel

func SetPlayerFacingAngle

func SetPlayerFacingAngle(playerid int, angle float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerFacingAngle

func SetPlayerFightingStyle

func SetPlayerFightingStyle(playerid, style int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerFightingStyle

func SetPlayerHealth

func SetPlayerHealth(playerid int, health float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerHealth

func SetPlayerInterior

func SetPlayerInterior(playerid int, interiorid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerInterior

func SetPlayerMapIcon

func SetPlayerMapIcon(playerid, iconid int, x, y, z float32, markertype, color, style int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerMapIcon

func SetPlayerMarkerForPlayer

func SetPlayerMarkerForPlayer(playerid, showplayerid, color int64) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerMarkerForPlayer

func SetPlayerName

func SetPlayerName(playerid int, name string) int

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerName

func SetPlayerObjectMaterial

func SetPlayerObjectMaterial(playerid, objectid, materialindex, modelid int, txdname, texturename string, materialcolor int64) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerObjectMaterial

func SetPlayerObjectMaterialText

func SetPlayerObjectMaterialText(playerid, objectid int, text string, materialindex, materialsize int, fontface string, fontsize int, bold bool, fontcolor, backcolor, textalignment int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerObjectMaterialText

func SetPlayerObjectNoCameraCol

func SetPlayerObjectNoCameraCol(playerid, objectid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerObjectNoCameraCol

func SetPlayerObjectPos

func SetPlayerObjectPos(playerid, objectid int, x, y, z float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerObjectPos

func SetPlayerObjectRot

func SetPlayerObjectRot(playerid, objectid int, rotX, rotY, rotZ float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerObjectRot

func SetPlayerPos

func SetPlayerPos(playerid int, x, y, z float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerPos

func SetPlayerPosFindZ

func SetPlayerPosFindZ(playerid int, x, y, z float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerPosFindZ

func SetPlayerRaceCheckpoint

func SetPlayerRaceCheckpoint(playerid, type_ int, x, y, z, nextx, nexty, nextz, size float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerRaceCheckpoint

func SetPlayerScore

func SetPlayerScore(playerid, score int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerScore

func SetPlayerShopName

func SetPlayerShopName(playerid int, shopname string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerShopName

func SetPlayerSkillLevel

func SetPlayerSkillLevel(playerid int, skill, level int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerSkillLevel

func SetPlayerSkin

func SetPlayerSkin(playerid, skinid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerSkin

func SetPlayerSpecialAction

func SetPlayerSpecialAction(playerid int, actionid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerSpecialAction

func SetPlayerTeam

func SetPlayerTeam(playerid, teamid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerTeam

func SetPlayerTime

func SetPlayerTime(playerid, hour, minute int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerTime

func SetPlayerVelocity

func SetPlayerVelocity(playerid int, x, y, z float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerVelocity

func SetPlayerVirtualWorld

func SetPlayerVirtualWorld(playerid int, worldid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerVirtualWorld

func SetPlayerWantedLevel

func SetPlayerWantedLevel(playerid, level int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerWantedLevel

func SetPlayerWeather

func SetPlayerWeather(playerid, weather int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerWeather

func SetPlayerWorldBounds

func SetPlayerWorldBounds(playerid int, x_max, x_min, y_max, y_min float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerWorldBounds

func SetSVarFloat

func SetSVarFloat(varname string, float_value float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetSVarFloat

func SetSVarInt

func SetSVarInt(varname string, int_value int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetSVarInt

func SetSVarString

func SetSVarString(varname, string_value string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetSVarString

func SetSpawnInfo

func SetSpawnInfo(playerid, team, skin int, x, y, z, rotation float32, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetSpawnInfo

func SetTeamCount

func SetTeamCount(count int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetTeamCount

func SetVehicleAngularVelocity

func SetVehicleAngularVelocity(vehicleid int, X, Y, Z float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleAngularVelocity

func SetVehicleHealth

func SetVehicleHealth(vehicleid int, health float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleHealth

func SetVehicleNumberPlate

func SetVehicleNumberPlate(vehicleid int, numberplate string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleNumberPlate

func SetVehicleParamsCarDoors

func SetVehicleParamsCarDoors(vehicleid, driver, passenger, backleft, backright int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleParamsCarDoors

func SetVehicleParamsCarWindows

func SetVehicleParamsCarWindows(vehicleid, driver, passenger, backleft, backright int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleParamsCarWindows

func SetVehicleParamsEx

func SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleParamsEx

func SetVehicleParamsForPlayer

func SetVehicleParamsForPlayer(vehicleid, playerid, objective, doorslocked int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleParamsForPlayer

func SetVehiclePos

func SetVehiclePos(vehicleid int, x, y, z float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetVehiclePos

func SetVehicleToRespawn

func SetVehicleToRespawn(vehicleid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleToRespawn

func SetVehicleVelocity

func SetVehicleVelocity(vehicleid int, X, Y, Z float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleVelocity

func SetVehicleVirtualWorld

func SetVehicleVirtualWorld(vehicleid, worldid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleVirtualWorld

func SetVehicleZAngle

func SetVehicleZAngle(vehicleid int, z_angle float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleZAngle

func SetWeather

func SetWeather(weatherid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetWeather

func SetWorldTime

func SetWorldTime(hour int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SetWorldTime

func ShowMenuForPlayer

func ShowMenuForPlayer(menuid, playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/ShowMenuForPlayer

func ShowNameTags

func ShowNameTags(show bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/ShowNameTags

func ShowPlayerDialog

func ShowPlayerDialog(playerid, dialogid, style int, caption, info, button1, button2 string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/ShowPlayerDialog

func ShowPlayerMarkers

func ShowPlayerMarkers(mode int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/ShowPlayerMarkers

func ShowPlayerNameTagForPlayer

func ShowPlayerNameTagForPlayer(playerid, showplayerid int, show bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/ShowPlayerNameTagForPlayer

func SpawnPlayer

func SpawnPlayer(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/SpawnPlayer

func StartRecordingPlayerData

func StartRecordingPlayerData(playerid, recordtype int, recordname string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/StartRecordingPlayerData

func StopAudioStreamForPlayer

func StopAudioStreamForPlayer(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/StopAudioStreamForPlayer

func StopObject

func StopObject(objectid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/StopObject

func StopPlayerObject

func StopPlayerObject(playerid, objectid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/StopPlayerObject

func StopRecordingPlayerData

func StopRecordingPlayerData(playerid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/StopRecordingPlayerData

func TextDrawAlignment

func TextDrawAlignment(textid, alignment int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawAlignment

func TextDrawBackgroundColor

func TextDrawBackgroundColor(textid, color int64) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawBackgroundColor

func TextDrawBoxColor

func TextDrawBoxColor(textid, color int64) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawBoxColor

func TextDrawColor

func TextDrawColor(textid, color int64) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawColor

func TextDrawCreate

func TextDrawCreate(x, y float32, text string) int

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawCreate

func TextDrawDestroy

func TextDrawDestroy(textid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawDestroy

func TextDrawFont

func TextDrawFont(textid, font int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawFont

func TextDrawHideForAll

func TextDrawHideForAll(textid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawHideForAll

func TextDrawHideForPlayer

func TextDrawHideForPlayer(playerid, textid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawHideForPlayer

func TextDrawLetterSize

func TextDrawLetterSize(textid int, x, y float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawLetterSize

func TextDrawSetOutline

func TextDrawSetOutline(textid, size int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawSetOutline

func TextDrawSetPreviewModel

func TextDrawSetPreviewModel(textid int, modelindex int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawSetPreviewModel

func TextDrawSetPreviewRot

func TextDrawSetPreviewRot(textid int, fRotX, fRotY, fRotZ, fZoom float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawSetPreviewRot

func TextDrawSetPreviewVehCol

func TextDrawSetPreviewVehCol(textid, color1, color2 int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawSetPreviewVehCol

func TextDrawSetProportional

func TextDrawSetProportional(textid int, set bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawSetProportional

func TextDrawSetSelectable

func TextDrawSetSelectable(textid int, set bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawSetSelectable

func TextDrawSetShadow

func TextDrawSetShadow(textid, size int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawSetShadow

func TextDrawSetString

func TextDrawSetString(textid int, text string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawSetString

func TextDrawShowForAll

func TextDrawShowForAll(textid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawShowForAll

func TextDrawShowForPlayer

func TextDrawShowForPlayer(playerid, textid int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawShowForPlayer

func TextDrawTextSize

func TextDrawTextSize(textid int, x, y float32) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawTextSize

func TextDrawUseBox

func TextDrawUseBox(textid int, use bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawUseBox

func TogglePlayerClock

func TogglePlayerClock(playerid int, toggle bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TogglePlayerClock

func TogglePlayerControllable

func TogglePlayerControllable(playerid int, toggle bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TogglePlayerControllable

func TogglePlayerSpectating

func TogglePlayerSpectating(playerid int, toggle bool) bool

For documentation, please visit https://open.mp/docs/scripting/functions/TogglePlayerSpectating

func UGMPApplyMapOffsetToCoords

func UGMPApplyMapOffsetToCoords(city int, x, y, z float32)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ApplyMapOffsetToCoords

func UGMPChangePlayerPedColour

func UGMPChangePlayerPedColour(playerid, colour1, colour2, colour3, colour4 int)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ChangePlayerPedColour

func UGMPChangeVehicleColourRGB

func UGMPChangeVehicleColourRGB(vehicleid, colour, red, green, blue int)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ChangeVehicleColourRGB

func UGMPChangeVehiclePearlColour

func UGMPChangeVehiclePearlColour(vehicleid, color int64)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ChangeVehiclePearlColour

func UGMPChangeVehiclePearlColourRGB

func UGMPChangeVehiclePearlColourRGB(vehicleid, red, green, blue int)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ChangeVehiclePearlColourRGB

func UGMPCreateExtraWeather

func UGMPCreateExtraWeather(weatherHandlingType, weatherType, colourFilter int) int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/CreateExtraWeather

func UGMPDestroyExtraWeather

func UGMPDestroyExtraWeather(extraWeatherID int) int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/DestroyExtraWeather

func UGMPEnableRadioAutoTune

func UGMPEnableRadioAutoTune(toggle bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/EnableRadioAutoTune

func UGMPGetNumPedModels

func UGMPGetNumPedModels() int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetNumPedModels

func UGMPGetNumWeaponModels

func UGMPGetNumWeaponModels() int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetNumWeaponModels

func UGMPGetRadioStationName

func UGMPGetRadioStationName(station int, str *string, length int)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetRadioStationName

func UGMPGetRandomPedModel

func UGMPGetRandomPedModel() int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetRandomPedModel

func UGMPGetValidPedModelAt

func UGMPGetValidPedModelAt(index int) int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetValidPedModelAt

func UGMPGetValidVehicleModelAt

func UGMPGetValidVehicleModelAt(index int) int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetValidVehicleModelAt

func UGMPGetValidWeaponModelAt

func UGMPGetValidWeaponModelAt(index int) int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetValidWeaponModelAt

func UGMPGetValidWeaponTypeAt

func UGMPGetValidWeaponTypeAt(index int) int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetValidWeaponTypeAt

func UGMPGetVehicleComponentTypeEx

func UGMPGetVehicleComponentTypeEx(component int) int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetVehicleComponentTypeEx

func UGMPGetVehicleRadioStation

func UGMPGetVehicleRadioStation(vehicleid int)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetVehicleRadioStation

func UGMPGetWeaponHighestParentType

func UGMPGetWeaponHighestParentType(weapontype int) int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetWeaponHighestParentType

func UGMPInitialiseDiscordRichPresence

func UGMPInitialiseDiscordRichPresence(applicationID string)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/InitialiseDiscordRichPresence

func UGMPIsRubbishVisibleForPlayer

func UGMPIsRubbishVisibleForPlayer(playerid int) bool

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/IsRubbishVisibleForPlayer

func UGMPIsSASunPositionFormulaEnabled

func UGMPIsSASunPositionFormulaEnabled(playerid int) int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/IsSASunPositionFormulaEnabled

func UGMPIsValidAnimationAndLibrary

func UGMPIsValidAnimationAndLibrary(animlib, animname string) bool

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/IsValidAnimationAndLibrary

func UGMPIsValidPedModel

func UGMPIsValidPedModel(modelid int) bool

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/IsValidPedModel

func UGMPIsValidVehicleModel

func UGMPIsValidVehicleModel(modelid int) bool

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/IsValidVehicleModel

func UGMPIsValidWeaponModel

func UGMPIsValidWeaponModel(modelid int) bool

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/IsValidWeaponModel

func UGMPIsValidWeaponType

func UGMPIsValidWeaponType(weapontype int) bool

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/IsValidWeaponType

func UGMPMT19937_Random

func UGMPMT19937_Random(a, b int) int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/MT19937_Random

func UGMPSetAircraftHeightLimitForPlayer

func UGMPSetAircraftHeightLimitForPlayer(playerid int, limit float32) bool

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetAircraftHeightLimitForPlayer

func UGMPSetCurrentSeason

func UGMPSetCurrentSeason(season int)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetCurrentSeason

func UGMPSetExtraWeatherParam_Flags

func UGMPSetExtraWeatherParam_Flags(extraweatherid, flags int) int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetExtraWeatherParam_Flags

func UGMPSetExtraWeatherParam_Float

func UGMPSetExtraWeatherParam_Float(extraweatherid, hour, param int, fParam float32) int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetExtraWeatherParam_Float

func UGMPSetExtraWeatherParam_Int

func UGMPSetExtraWeatherParam_Int(extraweatherid, hour, param, nParam int) int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetExtraWeatherParam_Int

func UGMPSetExtraWeatherParam_RGB

func UGMPSetExtraWeatherParam_RGB(extraweatherid, hour, param, red, green, blue int) int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetExtraWeatherParam_RGB

func UGMPSetExtraWeatherParam_RGBA

func UGMPSetExtraWeatherParam_RGBA(extraweatherid, hour, param int, red, green, blue, alpha float32) int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetExtraWeatherParam_RGBA

func UGMPSetExtraWeatherParam_Windyness

func UGMPSetExtraWeatherParam_Windyness(extraweatherid int, windyness float32) int

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetExtraWeatherParam_Windyness

func UGMPSetPlayerFireProof

func UGMPSetPlayerFireProof(playerid int, enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetPlayerFireProof

func UGMPSetPlayerKnockedOffBikeState

func UGMPSetPlayerKnockedOffBikeState(playerid, knockState int)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetPlayerKnockedOffBikeState

func UGMPSetPlayerSeason

func UGMPSetPlayerSeason(playerid, season int)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetPlayerSeason

func UGMPSetVehicleRadioStation

func UGMPSetVehicleRadioStation(vehicleid, station int)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetVehicleRadioStation

func UGMPToggleFluffyClouds

func UGMPToggleFluffyClouds(enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ToggleFluffyClouds

func UGMPToggleLowClouds

func UGMPToggleLowClouds(enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ToggleLowClouds

func UGMPToggleMoon

func UGMPToggleMoon(enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ToggleMoon

func UGMPTogglePlayerCCTV

func UGMPTogglePlayerCCTV(playerid int, enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerCCTV

func UGMPTogglePlayerDarknessFilter

func UGMPTogglePlayerDarknessFilter(playerid int, enable bool, darknessAlpha int)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerDarknessFilter

func UGMPTogglePlayerFluffyClouds

func UGMPTogglePlayerFluffyClouds(playerid int, enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerFluffyClouds

func UGMPTogglePlayerFogOverlay

func UGMPTogglePlayerFogOverlay(playerid int, enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerFogOverlay

func UGMPTogglePlayerGrass

func UGMPTogglePlayerGrass(playerid int, enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerGrass

func UGMPTogglePlayerInfiniteSprint

func UGMPTogglePlayerInfiniteSprint(playerid int, enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerInfiniteSprint

func UGMPTogglePlayerInfraRed

func UGMPTogglePlayerInfraRed(playerid int, enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerInfraRed

func UGMPTogglePlayerLowClouds

func UGMPTogglePlayerLowClouds(playerid int, enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerLowClouds

func UGMPTogglePlayerMoon

func UGMPTogglePlayerMoon(playerid int, enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerMoon

func UGMPTogglePlayerNightVision

func UGMPTogglePlayerNightVision(playerid int, enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerNightVision

func UGMPTogglePlayerRainbow

func UGMPTogglePlayerRainbow(playerid int, enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerRainbow

func UGMPTogglePlayerRubbish

func UGMPTogglePlayerRubbish(playerid int, enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerRubbish

func UGMPTogglePlayerStars

func UGMPTogglePlayerStars(playerid int, enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerStars

func UGMPTogglePlayerSun

func UGMPTogglePlayerSun(playerid int, enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerSun

func UGMPTogglePlayerVideoCameraOverlay

func UGMPTogglePlayerVideoCameraOverlay(playerid int, enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerVideoCameraOverlay

func UGMPToggleRainbow

func UGMPToggleRainbow(enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ToggleRainbow

func UGMPToggleSASunPositionFormula

func UGMPToggleSASunPositionFormula(enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ToggleSASunPositionFormula

func UGMPToggleSASunPositionFormula_Pl

func UGMPToggleSASunPositionFormula_Pl(playerid int, enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ToggleSASunPositionFormula_Pl

func UGMPToggleStars

func UGMPToggleStars(enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ToggleStars

func UGMPToggleVehicleColorRGB

func UGMPToggleVehicleColorRGB(vehicleid, color int64, enable bool)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ToggleVehicleColorRGB

func UGMPUpdateDiscordRichPresence

func UGMPUpdateDiscordRichPresence(smallImageKey, smallImageText, largeImageKey, largeImageText, details string)

For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/UpdateDiscordRichPresence

func UnBlockIpAddress

func UnBlockIpAddress(ip_address string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/UnBlockIpAddress

func Update3DTextLabelText

func Update3DTextLabelText(id, color int64, text string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/Update3DTextLabelText

func UpdatePlayer3DTextLabelText

func UpdatePlayer3DTextLabelText(playerid, id, color int64, text string) bool

For documentation, please visit https://open.mp/docs/scripting/functions/UpdatePlayer3DTextLabelText

func UpdateVehicleDamageStatus

func UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, tires int) bool

For documentation, please visit https://open.mp/docs/scripting/functions/UpdateVehicleDamageStatus

func UsePlayerPedAnims

func UsePlayerPedAnims() bool

For documentation, please visit https://open.mp/docs/scripting/functions/UsePlayerPedAnims

func VectorSize

func VectorSize(x, y, z float32) float32

For documentation, please visit https://open.mp/docs/scripting/functions/VectorSize

Types

type EventType

type EventType int
const (
	Repeat EventType = iota
	OnceOnly
)

type Player

type Player struct {
	ID int
}

Player implements OO players.

func (*Player) GetFacingAngle

func (p *Player) GetFacingAngle() (float32, error)

func (*Player) GetName

func (p *Player) GetName() string

GetName returns the players name.

func (*Player) GetPos

func (p *Player) GetPos() (float32, float32, float32, error)

GetPos gets the player's current position.

func (*Player) NewTextDraw

func (p *Player) NewTextDraw(x, y float32, text string) (PlayerTextDraw, error)

func (*Player) SendMessage

func (p *Player) SendMessage(colour int, msg string) error

SendMessage allows you to send a player a message.

func (*Player) SetName

func (p *Player) SetName(name string) error

SetName sets the players name.

func (*Player) SetPos

func (p *Player) SetPos(x, y, z float32) error

SetPos sets the player's current position.

func (*Player) ShowDialog

func (p *Player) ShowDialog(dialogid, style int, caption, info, button1, button2 string) error

func (*Player) Spawn

func (p *Player) Spawn() error

Spawn spawns the player.

type PlayerTextDraw

type PlayerTextDraw struct {
	// contains filtered or unexported fields
}

func (*PlayerTextDraw) Destroy

func (p *PlayerTextDraw) Destroy()

func (*PlayerTextDraw) Font

func (p *PlayerTextDraw) Font(font int)

func (*PlayerTextDraw) Hide

func (p *PlayerTextDraw) Hide()

func (*PlayerTextDraw) SetAlignment

func (p *PlayerTextDraw) SetAlignment(align int)

func (*PlayerTextDraw) SetBackgroundColor

func (p *PlayerTextDraw) SetBackgroundColor(color int)

func (*PlayerTextDraw) SetBoxColor

func (p *PlayerTextDraw) SetBoxColor(color int)

func (*PlayerTextDraw) SetColor

func (p *PlayerTextDraw) SetColor(color int)

func (*PlayerTextDraw) SetString

func (p *PlayerTextDraw) SetString(text string)

func (*PlayerTextDraw) SetTextSize

func (p *PlayerTextDraw) SetTextSize(x, y float32)

func (*PlayerTextDraw) Show

func (p *PlayerTextDraw) Show()

func (*PlayerTextDraw) UseBox

func (p *PlayerTextDraw) UseBox(use bool)

type Vehicle

type Vehicle struct {
	ID int
}

func NewVehicle

func NewVehicle(modelid int, x, y, z, rotation float32, color1, color2 uint8, respawn_delay int, addsiren bool) (Vehicle, error)

func (*Vehicle) Destroy

func (v *Vehicle) Destroy() error

func (*Vehicle) GetParams

func (v *Vehicle) GetParams() VehicleParams

func (*Vehicle) GetSpeedFloat32

func (v *Vehicle) GetSpeedFloat32() float32

func (*Vehicle) GetSpeedFloat64

func (v *Vehicle) GetSpeedFloat64() float64

func (*Vehicle) GetSpeedInt

func (v *Vehicle) GetSpeedInt() int

func (*Vehicle) PutPlayer

func (v *Vehicle) PutPlayer(p *Player, seat int) error

func (*Vehicle) SetParams

func (v *Vehicle) SetParams(params VehicleParams)

type VehicleParams

type VehicleParams struct {
	Engine    int
	Lights    int
	Alarm     int
	Doors     int
	Bonnet    int
	Boot      int
	Objective int
}

Directories

Path Synopsis
util

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL