rakstar

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

README

RAKSTAR

SA-MP friendly

thx sampgo

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 added in v1.0.0

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

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

func AddMenuItem added in v1.0.0

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

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

func AddPlayerClass added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

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

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

func AddSimpleModelTimed added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

func AddVehicleComponent(vehicleid, componentid int) bool

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

func AllowAdminTeleport added in v1.0.0

func AllowAdminTeleport(allow bool) bool

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

func AllowInteriorWeapons added in v1.0.0

func AllowInteriorWeapons(allow bool) bool

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

func AllowPlayerTeleport added in v1.0.0

func AllowPlayerTeleport(playerid int, allow bool) bool

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

func ApplyActorAnimation added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

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

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

func Attach3DTextLabelToVehicle added in v1.0.0

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

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

func AttachCameraToObject added in v1.0.0

func AttachCameraToObject(playerid, objectid int) bool

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

func AttachCameraToPlayerObject added in v1.0.0

func AttachCameraToPlayerObject(playerid, playerobjectid int) bool

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

func AttachObjectToObject added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

func AttachTrailerToVehicle(trailerid, vehicleid int) bool

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

func Ban added in v1.0.0

func Ban(playerid int) bool

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

func BanEx added in v1.0.0

func BanEx(playerid int, reason string) bool

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

func BlockIpAddress added in v1.0.0

func BlockIpAddress(ip_address string, timems int) bool

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

func CancelEdit added in v1.0.0

func CancelEdit(playerid int) bool

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

func CancelSelectTextDraw added in v1.0.0

func CancelSelectTextDraw(playerid int) bool

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

func ChangeVehicleColor added in v1.0.0

func ChangeVehicleColor(vehicleid, color1, color2 int) bool

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

func ChangeVehiclePaintjob added in v1.0.0

func ChangeVehiclePaintjob(vehicleid, paintjobid int) bool

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

func ClearActorAnimations added in v1.0.0

func ClearActorAnimations(actorid int) bool

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

func ClearAnimations added in v1.0.0

func ClearAnimations(playerid int, forcesync bool) bool

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

func ConnectNPC added in v1.0.0

func ConnectNPC(name, script string) bool

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

func Create3DTextLabel added in v1.0.0

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

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

func CreateActor added in v1.0.0

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

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

func CreateExplosion added in v1.0.0

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

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

func CreateExplosionForPlayer added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

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

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

func CreatePlayerObject added in v1.0.0

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 added in v1.0.0

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

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

func CreateVehicle added in v1.0.0

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 added in v1.0.0

func Delete3DTextLabel(id int) bool

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

func DeletePVar added in v1.0.0

func DeletePVar(playerid int, varname string) bool

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

func DeletePlayer3DTextLabel added in v1.0.0

func DeletePlayer3DTextLabel(playerid, id int) bool

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

func DeleteSVar added in v1.0.0

func DeleteSVar(varname string) bool

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

func DestroyActor added in v1.0.0

func DestroyActor(actorid int) bool

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

func DestroyMenu added in v1.0.0

func DestroyMenu(menuid int) bool

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

func DestroyObject added in v1.0.0

func DestroyObject(objectid int) bool

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

func DestroyPickup added in v1.0.0

func DestroyPickup(pickup int) bool

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

func DestroyPlayerObject added in v1.0.0

func DestroyPlayerObject(playerid, objectid int) bool

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

func DestroyVehicle added in v1.0.0

func DestroyVehicle(vehicleid int) bool

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

func DetachTrailerFromVehicle added in v1.0.0

func DetachTrailerFromVehicle(vehicleid int) bool

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

func DisableInteriorEnterExits added in v1.0.0

func DisableInteriorEnterExits() bool

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

func DisableMenu added in v1.0.0

func DisableMenu(menuid int) bool

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

func DisableMenuRow added in v1.0.0

func DisableMenuRow(menuid, row int) bool

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

func DisableNameTagLOS added in v1.0.0

func DisableNameTagLOS() bool

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

func DisablePlayerCheckpoint added in v1.0.0

func DisablePlayerCheckpoint(playerid int) bool

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

func DisablePlayerRaceCheckpoint added in v1.0.0

func DisablePlayerRaceCheckpoint(playerid int) bool

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

func DisableRemoteVehicleCollisions added in v1.0.0

func DisableRemoteVehicleCollisions(playerid int, disable bool) bool

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

func EditAttachedObject added in v1.0.0

func EditAttachedObject(playerid, index int) bool

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

func EditObject added in v1.0.0

func EditObject(playerid, objectid int) bool

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

func EditPlayerObject added in v1.0.0

func EditPlayerObject(playerid, objectid int) bool

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

func EnablePlayerCameraTarget added in v1.0.0

func EnablePlayerCameraTarget(playerid int, enable bool) bool

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

func EnableStuntBonusForAll added in v1.0.0

func EnableStuntBonusForAll(enable bool) bool

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

func EnableStuntBonusForPlayer added in v1.0.0

func EnableStuntBonusForPlayer(playerid int, enable bool) bool

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

func EnableTirePopping added in v1.0.0

func EnableTirePopping(enable bool) bool

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

func EnableVehicleFriendlyFire added in v1.0.0

func EnableVehicleFriendlyFire() bool

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

func EnableZoneNames added in v1.0.0

func EnableZoneNames(enable bool) bool

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

func FindModelFileNameFromCRC added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

func ForceClassSelection(playerid int) bool

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

func GameModeExit added in v1.0.0

func GameModeExit() bool

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

func GameTextForAll added in v1.0.0

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

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

func GameTextForPlayer added in v1.0.0

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

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

func GangZoneCreate added in v1.0.0

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

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

func GangZoneDestroy added in v1.0.0

func GangZoneDestroy(zone int) bool

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

func GangZoneFlashForAll added in v1.0.0

func GangZoneFlashForAll(zone, flashcolor int) bool

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

func GangZoneFlashForPlayer added in v1.0.0

func GangZoneFlashForPlayer(playerid, zone, flashcolor int) bool

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

func GangZoneHideForAll added in v1.0.0

func GangZoneHideForAll(zone int) bool

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

func GangZoneHideForPlayer added in v1.0.0

func GangZoneHideForPlayer(playerid, zone int) bool

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

func GangZoneShowForAll added in v1.0.0

func GangZoneShowForAll(zone, color int) bool

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

func GangZoneShowForPlayer added in v1.0.0

func GangZoneShowForPlayer(playerid, zone, color int) bool

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

func GangZoneStopFlashForAll added in v1.0.0

func GangZoneStopFlashForAll(zone int) bool

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

func GangZoneStopFlashForPlayer added in v1.0.0

func GangZoneStopFlashForPlayer(playerid, zone int) bool

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

func GetActorFacingAngle added in v1.0.0

func GetActorFacingAngle(actorid int, angle *float32) bool

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

func GetActorHealth added in v1.0.0

func GetActorHealth(actorid int, health *float32) bool

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

func GetActorPoolSize added in v1.0.0

func GetActorPoolSize() int

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

func GetActorPos added in v1.0.0

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

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

func GetActorVirtualWorld added in v1.0.0

func GetActorVirtualWorld(actorid int) int

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

func GetAnimationName added in v1.0.0

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 added in v1.0.0

func GetConsoleVarAsBool(varname string) bool

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

func GetConsoleVarAsInt added in v1.0.0

func GetConsoleVarAsInt(varname string) int

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

func GetConsoleVarAsString added in v1.0.0

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

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

func GetGravity added in v1.0.0

func GetGravity() float32

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

func GetMaxPlayers added in v1.0.0

func GetMaxPlayers() int

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

func GetNetworkStats added in v1.0.0

func GetNetworkStats(retstr *string, size int) bool

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

func GetObjectModel added in v1.0.0

func GetObjectModel(objectid int) int

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

func GetObjectPos added in v1.0.0

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

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

func GetObjectRot added in v1.0.0

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

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

func GetPVarFloat added in v1.0.0

func GetPVarFloat(playerid int, varname string) float32

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

func GetPVarInt added in v1.0.0

func GetPVarInt(playerid int, varname string) int

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

func GetPVarNameAtIndex added in v1.0.0

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

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

func GetPVarString added in v1.0.0

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

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

func GetPVarType added in v1.0.0

func GetPVarType(playerid int, varname string) int

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

func GetPVarsUpperIndex added in v1.0.0

func GetPVarsUpperIndex(playerid int) int

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

func GetPlayerAmmo added in v1.0.0

func GetPlayerAmmo(playerid int) int

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

func GetPlayerAnimationIndex added in v1.0.0

func GetPlayerAnimationIndex(playerid int) int

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

func GetPlayerArmour added in v1.0.0

func GetPlayerArmour(playerid int, armour *float32) bool

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

func GetPlayerCameraAspectRatio added in v1.0.0

func GetPlayerCameraAspectRatio(playerid int) float32

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

func GetPlayerCameraFrontVector added in v1.0.0

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

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

func GetPlayerCameraMode added in v1.0.0

func GetPlayerCameraMode(playerid int) int

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

func GetPlayerCameraPos added in v1.0.0

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

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

func GetPlayerCameraTargetActor added in v1.0.0

func GetPlayerCameraTargetActor(playerid int) int

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

func GetPlayerCameraTargetObject added in v1.0.0

func GetPlayerCameraTargetObject(playerid int) int

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

func GetPlayerCameraTargetPlayer added in v1.0.0

func GetPlayerCameraTargetPlayer(playerid int) int

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

func GetPlayerCameraTargetVehicle added in v1.0.0

func GetPlayerCameraTargetVehicle(playerid int) int

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

func GetPlayerCameraZoom added in v1.0.0

func GetPlayerCameraZoom(playerid int) float32

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

func GetPlayerColor added in v1.0.0

func GetPlayerColor(playerid int) int

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

func GetPlayerDistanceFromPoint added in v1.0.0

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

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

func GetPlayerDrunkLevel added in v1.0.0

func GetPlayerDrunkLevel(playerid int) int

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

func GetPlayerFacingAngle added in v1.0.0

func GetPlayerFacingAngle(playerid int, angle *float32) bool

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

func GetPlayerFightingStyle added in v1.0.0

func GetPlayerFightingStyle(playerid int) int

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

func GetPlayerHealth added in v1.0.0

func GetPlayerHealth(playerid int, health *float32) bool

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

func GetPlayerInterior added in v1.0.0

func GetPlayerInterior(playerid int) int

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

func GetPlayerIp added in v1.0.0

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

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

func GetPlayerKeys added in v1.0.0

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

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

func GetPlayerLastShotVectors added in v1.0.0

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 added in v1.0.0

func GetPlayerMenu(playerid int) int

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

func GetPlayerMoney added in v1.0.0

func GetPlayerMoney(playerid int) int

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

func GetPlayerName added in v1.0.0

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

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

func GetPlayerNetworkStats added in v1.0.0

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

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

func GetPlayerObjectModel added in v1.0.0

func GetPlayerObjectModel(playerid, objectid int) int

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

func GetPlayerObjectPos added in v1.0.0

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

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

func GetPlayerObjectRot added in v1.0.0

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

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

func GetPlayerPing added in v1.0.0

func GetPlayerPing(playerid int) int

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

func GetPlayerPoolSize added in v1.0.0

func GetPlayerPoolSize() int

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

func GetPlayerPos added in v1.0.0

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

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

func GetPlayerScore added in v1.0.0

func GetPlayerScore(playerid int) int

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

func GetPlayerSkin added in v1.0.0

func GetPlayerSkin(playerid int) int

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

func GetPlayerSpecialAction added in v1.0.0

func GetPlayerSpecialAction(playerid int) int

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

func GetPlayerState added in v1.0.0

func GetPlayerState(playerid int) int

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

func GetPlayerSurfingObjectID added in v1.0.0

func GetPlayerSurfingObjectID(playerid int) int

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

func GetPlayerSurfingVehicleID added in v1.0.0

func GetPlayerSurfingVehicleID(playerid int) int

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

func GetPlayerTargetActor added in v1.0.0

func GetPlayerTargetActor(playerid int) int

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

func GetPlayerTargetPlayer added in v1.0.0

func GetPlayerTargetPlayer(playerid int) int

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

func GetPlayerTeam added in v1.0.0

func GetPlayerTeam(playerid int) int

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

func GetPlayerTime added in v1.0.0

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

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

func GetPlayerVehicleID added in v1.0.0

func GetPlayerVehicleID(playerid int) int

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

func GetPlayerVehicleSeat added in v1.0.0

func GetPlayerVehicleSeat(playerid int) int

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

func GetPlayerVelocity added in v1.0.0

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

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

func GetPlayerVersion added in v1.0.0

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

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

func GetPlayerVirtualWorld added in v1.0.0

func GetPlayerVirtualWorld(playerid int) int

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

func GetPlayerWantedLevel added in v1.0.0

func GetPlayerWantedLevel(playerid int) int

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

func GetPlayerWeapon added in v1.0.0

func GetPlayerWeapon(playerid int) int

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

func GetPlayerWeaponData added in v1.0.0

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

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

func GetPlayerWeaponState added in v1.0.0

func GetPlayerWeaponState(playerid int) int

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

func GetSVarFloat added in v1.0.0

func GetSVarFloat(varname string) float32

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

func GetSVarInt added in v1.0.0

func GetSVarInt(varname string) int

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

func GetSVarNameAtIndex added in v1.0.0

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

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

func GetSVarString added in v1.0.0

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

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

func GetSVarType added in v1.0.0

func GetSVarType(varname string) int

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

func GetSVarsUpperIndex added in v1.0.0

func GetSVarsUpperIndex() int

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

func GetServerTickRate added in v1.0.0

func GetServerTickRate() int

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

func GetServerVarAsBool added in v1.0.0

func GetServerVarAsBool(varname string) bool

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

func GetServerVarAsInt added in v1.0.0

func GetServerVarAsInt(varname string) int

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

func GetServerVarAsString added in v1.0.0

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

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

func GetTickCount added in v1.0.0

func GetTickCount() int

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

func GetVehicleComponentInSlot added in v1.0.0

func GetVehicleComponentInSlot(vehicleid, slot int) int

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

func GetVehicleComponentType added in v1.0.0

func GetVehicleComponentType(component int) int

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

func GetVehicleDamageStatus added in v1.0.0

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

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

func GetVehicleDistanceFromPoint added in v1.0.0

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

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

func GetVehicleHealth added in v1.0.0

func GetVehicleHealth(vehicleid int, health *float32) bool

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

func GetVehicleModel added in v1.0.0

func GetVehicleModel(vehicleid int) int

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

func GetVehicleModelInfo added in v1.0.0

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 added in v1.0.0

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

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

func GetVehicleParamsCarWindows added in v1.0.0

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

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

func GetVehicleParamsEx added in v1.0.0

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 added in v1.0.0

func GetVehicleParamsSirenState(vehicleid int) int

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

func GetVehiclePoolSize added in v1.0.0

func GetVehiclePoolSize() int

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

func GetVehiclePos added in v1.0.0

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

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

func GetVehicleRotationQuat added in v1.0.0

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

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

func GetVehicleTrailer added in v1.0.0

func GetVehicleTrailer(vehicleid int) int

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

func GetVehicleVelocity added in v1.0.0

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

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

func GetVehicleVirtualWorld added in v1.0.0

func GetVehicleVirtualWorld(vehicleid int) int

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

func GetVehicleZAngle added in v1.0.0

func GetVehicleZAngle(vehicleid int, z_angle *float32) bool

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

func GetWeaponName added in v1.0.0

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

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

func GivePlayerMoney added in v1.0.0

func GivePlayerMoney(playerid int, money int) bool

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

func GivePlayerWeapon added in v1.0.0

func GivePlayerWeapon(playerid, weaponid, ammo int) bool

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

func HideMenuForPlayer added in v1.0.0

func HideMenuForPlayer(menuid, playerid int) bool

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

func InterpolateCameraLookAt added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

func IsActorInvulnerable(actorid int) bool

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

func IsActorStreamedIn added in v1.0.0

func IsActorStreamedIn(actorid, forplayerid int) bool

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

func IsObjectMoving added in v1.0.0

func IsObjectMoving(objectid int) bool

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

func IsPlayerAdmin added in v1.0.0

func IsPlayerAdmin(playerid int) bool

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

func IsPlayerAttachedObjectSlotUsed added in v1.0.0

func IsPlayerAttachedObjectSlotUsed(playerid, index int) bool

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

func IsPlayerConnected added in v1.0.0

func IsPlayerConnected(playerid int) bool

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

func IsPlayerInAnyVehicle added in v1.0.0

func IsPlayerInAnyVehicle(playerid int) bool

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

func IsPlayerInCheckpoint added in v1.0.0

func IsPlayerInCheckpoint(playerid int) bool

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

func IsPlayerInRaceCheckpoint added in v1.0.0

func IsPlayerInRaceCheckpoint(playerid int) bool

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

func IsPlayerInRangeOfPoint added in v1.0.0

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

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

func IsPlayerInVehicle added in v1.0.0

func IsPlayerInVehicle(playerid int, vehicleid int) bool

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

func IsPlayerNPC added in v1.0.0

func IsPlayerNPC(playerid int) bool

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

func IsPlayerObjectMoving added in v1.0.0

func IsPlayerObjectMoving(playerid, objectid int) bool

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

func IsPlayerStreamedIn added in v1.0.0

func IsPlayerStreamedIn(playerid int, forplayerid int) bool

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

func IsTrailerAttachedToVehicle added in v1.0.0

func IsTrailerAttachedToVehicle(vehicleid int) bool

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

func IsValidActor added in v1.0.0

func IsValidActor(actorid int) bool

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

func IsValidMenu added in v1.0.0

func IsValidMenu(menuid int) bool

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

func IsValidObject added in v1.0.0

func IsValidObject(objectid int) bool

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

func IsValidPlayerObject added in v1.0.0

func IsValidPlayerObject(playerid, objectid int) bool

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

func IsValidVehicle added in v1.0.0

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 added in v1.0.0

func IsVehicleStreamedIn(vehicleid, forplayerid int) bool

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

func Kick added in v1.0.0

func Kick(playerid int) bool

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

func LimitGlobalChatRadius added in v1.0.0

func LimitGlobalChatRadius(chat_radius float32) bool

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

func LimitPlayerMarkerRadius added in v1.0.0

func LimitPlayerMarkerRadius(marker_radius float32) bool

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

func LinkVehicleToInterior added in v1.0.0

func LinkVehicleToInterior(vehicleid, interiorid int) bool

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

func ManualVehicleEngineAndLights added in v1.0.0

func ManualVehicleEngineAndLights() bool

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

func MoveObject added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

func NetStats_BytesReceived(playerid int) int

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

func NetStats_BytesSent added in v1.0.0

func NetStats_BytesSent(playerid int) int

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

func NetStats_ConnectionStatus added in v1.0.0

func NetStats_ConnectionStatus(playerid int) int

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

func NetStats_GetConnectedTime added in v1.0.0

func NetStats_GetConnectedTime(playerid int) int

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

func NetStats_GetIpPort added in v1.0.0

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 added in v1.0.0

func NetStats_MessagesReceived(playerid int) int

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

func NetStats_MessagesRecvPerSecond added in v1.0.0

func NetStats_MessagesRecvPerSecond(playerid int) int

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

func NetStats_MessagesSent added in v1.0.0

func NetStats_MessagesSent(playerid int) int

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

func NetStats_PacketLossPercent added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

func PlayCrimeReportForPlayer(playerid, suspectid, crime int) bool

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

func PlayerPlaySound added in v1.0.0

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

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

func PlayerSpectatePlayer added in v1.0.0

func PlayerSpectatePlayer(playerid, targetplayerid, mode int) bool

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

func PlayerSpectateVehicle added in v1.0.0

func PlayerSpectateVehicle(playerid, targetvehicleid, mode int) bool

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

func PlayerTextDrawAlignment added in v1.0.0

func PlayerTextDrawAlignment(playerid, textid, alignment int) bool

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

func PlayerTextDrawBackgroundColor added in v1.0.0

func PlayerTextDrawBackgroundColor(playerid, textid, color int) bool

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

func PlayerTextDrawBoxColor added in v1.0.0

func PlayerTextDrawBoxColor(playerid, textid, color int) bool

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

func PlayerTextDrawColor added in v1.0.0

func PlayerTextDrawColor(playerid, textid, color int) bool

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

func PlayerTextDrawDestroy added in v1.0.0

func PlayerTextDrawDestroy(playerid int, textid int) bool

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

func PlayerTextDrawFont added in v1.0.0

func PlayerTextDrawFont(playerid, textid, font int) bool

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

func PlayerTextDrawHide added in v1.0.0

func PlayerTextDrawHide(playerid, textid int) bool

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

func PlayerTextDrawLetterSize added in v1.0.0

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

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

func PlayerTextDrawSetOutline added in v1.0.0

func PlayerTextDrawSetOutline(playerid, textid, size int) bool

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

func PlayerTextDrawSetPreviewModel added in v1.0.0

func PlayerTextDrawSetPreviewModel(playerid, textid, modelindex int) bool

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

func PlayerTextDrawSetPreviewRot added in v1.0.0

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

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

func PlayerTextDrawSetPreviewVehCol added in v1.0.0

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

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

func PlayerTextDrawSetProportional added in v1.0.0

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

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

func PlayerTextDrawSetSelectable added in v1.0.0

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

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

func PlayerTextDrawSetShadow added in v1.0.0

func PlayerTextDrawSetShadow(playerid, textid, size int) bool

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

func PlayerTextDrawSetString added in v1.0.0

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

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

func PlayerTextDrawShow added in v1.0.0

func PlayerTextDrawShow(playerid, textid int) bool

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

func PlayerTextDrawTextSize added in v1.0.0

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

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

func PlayerTextDrawUseBox added in v1.0.0

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 added in v1.0.0

func PutPlayerInVehicle(playerid, vehicleid, seatid int) bool

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

func RedirectDownload added in v1.0.0

func RedirectDownload(playerid int, url string) bool

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

func RemoveBuildingForPlayer added in v1.0.0

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

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

func RemovePlayerAttachedObject added in v1.0.0

func RemovePlayerAttachedObject(playerid, index int) bool

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

func RemovePlayerFromVehicle added in v1.0.0

func RemovePlayerFromVehicle(playerid int) bool

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

func RemovePlayerMapIcon added in v1.0.0

func RemovePlayerMapIcon(playerid, iconid int) bool

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

func RemoveVehicleComponent added in v1.0.0

func RemoveVehicleComponent(vehicleid, componentid int) bool

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

func RepairVehicle added in v1.0.0

func RepairVehicle(vehicleid int) bool

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

func ResetPlayerMoney added in v1.0.0

func ResetPlayerMoney(playerid int) bool

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

func ResetPlayerWeapons added in v1.0.0

func ResetPlayerWeapons(playerid int) bool

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

func SHA256_PassHash added in v1.0.0

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 added in v1.0.0

func SelectObject(playerid int) bool

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

func SelectTextDraw added in v1.0.0

func SelectTextDraw(playerid, hovercolor int) bool

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

func SendClientMessage added in v1.0.0

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

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

func SendClientMessageToAll added in v1.0.0

func SendClientMessageToAll(color int, message string) bool

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

func SendDeathMessage added in v1.0.0

func SendDeathMessage(killer, killee, weapon int) bool

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

func SendDeathMessageToPlayer added in v1.0.0

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

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

func SendPlayerMessageToAll added in v1.0.0

func SendPlayerMessageToAll(senderid int, message string) bool

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

func SendPlayerMessageToPlayer added in v1.0.0

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

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

func SendRconCommand added in v1.0.0

func SendRconCommand(command string) bool

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

func SetActorFacingAngle added in v1.0.0

func SetActorFacingAngle(actorid int, angle float32) bool

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

func SetActorHealth added in v1.0.0

func SetActorHealth(actorid int, health float32) bool

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

func SetActorInvulnerable added in v1.0.0

func SetActorInvulnerable(actorid int, invulnerable bool) bool

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

func SetActorPos added in v1.0.0

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

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

func SetActorVirtualWorld added in v1.0.0

func SetActorVirtualWorld(actorid, vworld int) bool

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

func SetCameraBehindPlayer added in v1.0.0

func SetCameraBehindPlayer(playerid int) bool

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

func SetDeathDropAmount added in v1.0.0

func SetDeathDropAmount(amount int) bool

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

func SetGameModeText added in v1.0.0

func SetGameModeText(text string) bool

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

func SetGravity added in v1.0.0

func SetGravity(gravity float32) bool

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

func SetMenuColumnHeader added in v1.0.0

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

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

func SetNameTagDrawDistance added in v1.0.0

func SetNameTagDrawDistance(distance float32) bool

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

func SetObjectMaterial added in v1.0.0

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

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

func SetObjectMaterialText added in v1.0.0

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 added in v1.0.0

func SetObjectNoCameraCol(objectid int) bool

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

func SetObjectPos added in v1.0.0

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

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

func SetObjectRot added in v1.0.0

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

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

func SetObjectsDefaultCameraCol added in v1.0.0

func SetObjectsDefaultCameraCol(disable bool) bool

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

func SetPVarFloat added in v1.0.0

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

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

func SetPVarInt added in v1.0.0

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

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

func SetPVarString added in v1.0.0

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

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

func SetPlayerAmmo added in v1.0.0

func SetPlayerAmmo(playerid, weaponid, ammo int) bool

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

func SetPlayerArmedWeapon added in v1.0.0

func SetPlayerArmedWeapon(playerid, weaponid int) bool

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

func SetPlayerArmour added in v1.0.0

func SetPlayerArmour(playerid int, armour float32) bool

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

func SetPlayerAttachedObject added in v1.0.0

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 added in v1.0.0

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

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

func SetPlayerCameraPos added in v1.0.0

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

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

func SetPlayerChatBubble added in v1.0.0

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

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

func SetPlayerCheckpoint added in v1.0.0

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

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

func SetPlayerColor added in v1.0.0

func SetPlayerColor(playerid, color int) bool

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

func SetPlayerDrunkLevel added in v1.0.0

func SetPlayerDrunkLevel(playerid, level int) bool

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

func SetPlayerFacingAngle added in v1.0.0

func SetPlayerFacingAngle(playerid int, angle float32) bool

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

func SetPlayerFightingStyle added in v1.0.0

func SetPlayerFightingStyle(playerid, style int) bool

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

func SetPlayerHealth added in v1.0.0

func SetPlayerHealth(playerid int, health float32) bool

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

func SetPlayerInterior added in v1.0.0

func SetPlayerInterior(playerid int, interiorid int) bool

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

func SetPlayerMapIcon added in v1.0.0

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 added in v1.0.0

func SetPlayerMarkerForPlayer(playerid, showplayerid, color int) bool

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

func SetPlayerName added in v1.0.0

func SetPlayerName(playerid int, name string) int

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

func SetPlayerObjectMaterial added in v1.0.0

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

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

func SetPlayerObjectMaterialText added in v1.0.0

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 added in v1.0.0

func SetPlayerObjectNoCameraCol(playerid, objectid int) bool

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

func SetPlayerObjectPos added in v1.0.0

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

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

func SetPlayerObjectRot added in v1.0.0

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

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

func SetPlayerPos added in v1.0.0

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

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

func SetPlayerPosFindZ added in v1.0.0

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

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

func SetPlayerRaceCheckpoint added in v1.0.0

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 added in v1.0.0

func SetPlayerScore(playerid, score int) bool

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

func SetPlayerShopName added in v1.0.0

func SetPlayerShopName(playerid int, shopname string) bool

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

func SetPlayerSkillLevel added in v1.0.0

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

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

func SetPlayerSkin added in v1.0.0

func SetPlayerSkin(playerid, skinid int) bool

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

func SetPlayerSpecialAction added in v1.0.0

func SetPlayerSpecialAction(playerid int, actionid int) bool

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

func SetPlayerTeam added in v1.0.0

func SetPlayerTeam(playerid, teamid int) bool

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

func SetPlayerTime added in v1.0.0

func SetPlayerTime(playerid, hour, minute int) bool

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

func SetPlayerVelocity added in v1.0.0

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

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

func SetPlayerVirtualWorld added in v1.0.0

func SetPlayerVirtualWorld(playerid int, worldid int) bool

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

func SetPlayerWantedLevel added in v1.0.0

func SetPlayerWantedLevel(playerid, level int) bool

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

func SetPlayerWeather added in v1.0.0

func SetPlayerWeather(playerid, weather int) bool

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

func SetPlayerWorldBounds added in v1.0.0

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 added in v1.0.0

func SetSVarFloat(varname string, float_value float32) bool

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

func SetSVarInt added in v1.0.0

func SetSVarInt(varname string, int_value int) bool

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

func SetSVarString added in v1.0.0

func SetSVarString(varname, string_value string) bool

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

func SetSpawnInfo added in v1.0.0

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 added in v1.0.0

func SetTeamCount(count int) bool

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

func SetVehicleAngularVelocity added in v1.0.0

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

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

func SetVehicleHealth added in v1.0.0

func SetVehicleHealth(vehicleid int, health float32) bool

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

func SetVehicleNumberPlate added in v1.0.0

func SetVehicleNumberPlate(vehicleid int, numberplate string) bool

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

func SetVehicleParamsCarDoors added in v1.0.0

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

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

func SetVehicleParamsCarWindows added in v1.0.0

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

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

func SetVehicleParamsEx added in v1.0.0

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 added in v1.0.0

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

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

func SetVehiclePos added in v1.0.0

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

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

func SetVehicleToRespawn added in v1.0.0

func SetVehicleToRespawn(vehicleid int) bool

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

func SetVehicleVelocity added in v1.0.0

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

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

func SetVehicleVirtualWorld added in v1.0.0

func SetVehicleVirtualWorld(vehicleid, worldid int) bool

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

func SetVehicleZAngle added in v1.0.0

func SetVehicleZAngle(vehicleid int, z_angle float32) bool

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

func SetWeather added in v1.0.0

func SetWeather(weatherid int) bool

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

func SetWorldTime added in v1.0.0

func SetWorldTime(hour int) bool

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

func ShowMenuForPlayer added in v1.0.0

func ShowMenuForPlayer(menuid, playerid int) bool

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

func ShowNameTags added in v1.0.0

func ShowNameTags(show bool) bool

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

func ShowPlayerDialog added in v1.0.0

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 added in v1.0.0

func ShowPlayerMarkers(mode int) bool

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

func ShowPlayerNameTagForPlayer added in v1.0.0

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

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

func SpawnPlayer added in v1.0.0

func SpawnPlayer(playerid int) bool

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

func StartRecordingPlayerData added in v1.0.0

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

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

func StopAudioStreamForPlayer added in v1.0.0

func StopAudioStreamForPlayer(playerid int) bool

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

func StopObject added in v1.0.0

func StopObject(objectid int) bool

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

func StopPlayerObject added in v1.0.0

func StopPlayerObject(playerid, objectid int) bool

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

func StopRecordingPlayerData added in v1.0.0

func StopRecordingPlayerData(playerid int) bool

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

func TextDrawAlignment added in v1.0.0

func TextDrawAlignment(textid, alignment int) bool

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

func TextDrawBackgroundColor added in v1.0.0

func TextDrawBackgroundColor(textid, color int) bool

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

func TextDrawBoxColor added in v1.0.0

func TextDrawBoxColor(textid, color int) bool

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

func TextDrawColor added in v1.0.0

func TextDrawColor(textid, color int) bool

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

func TextDrawCreate added in v1.0.0

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

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

func TextDrawDestroy added in v1.0.0

func TextDrawDestroy(textid int) bool

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

func TextDrawFont added in v1.0.0

func TextDrawFont(textid, font int) bool

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

func TextDrawHideForAll added in v1.0.0

func TextDrawHideForAll(textid int) bool

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

func TextDrawHideForPlayer added in v1.0.0

func TextDrawHideForPlayer(playerid, textid int) bool

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

func TextDrawLetterSize added in v1.0.0

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

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

func TextDrawSetOutline added in v1.0.0

func TextDrawSetOutline(textid, size int) bool

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

func TextDrawSetPreviewModel added in v1.0.0

func TextDrawSetPreviewModel(textid int, modelindex int) bool

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

func TextDrawSetPreviewRot added in v1.0.0

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

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

func TextDrawSetPreviewVehCol added in v1.0.0

func TextDrawSetPreviewVehCol(textid, color1, color2 int) bool

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

func TextDrawSetProportional added in v1.0.0

func TextDrawSetProportional(textid int, set bool) bool

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

func TextDrawSetSelectable added in v1.0.0

func TextDrawSetSelectable(textid int, set bool) bool

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

func TextDrawSetShadow added in v1.0.0

func TextDrawSetShadow(textid, size int) bool

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

func TextDrawSetString added in v1.0.0

func TextDrawSetString(textid int, text string) bool

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

func TextDrawShowForAll added in v1.0.0

func TextDrawShowForAll(textid int) bool

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

func TextDrawShowForPlayer added in v1.0.0

func TextDrawShowForPlayer(playerid, textid int) bool

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

func TextDrawTextSize added in v1.0.0

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

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

func TextDrawUseBox added in v1.0.0

func TextDrawUseBox(textid int, use bool) bool

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

func TogglePlayerClock added in v1.0.0

func TogglePlayerClock(playerid int, toggle bool) bool

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

func TogglePlayerControllable added in v1.0.0

func TogglePlayerControllable(playerid int, toggle bool) bool

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

func TogglePlayerSpectating added in v1.0.0

func TogglePlayerSpectating(playerid int, toggle bool) bool

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

func UGMPApplyMapOffsetToCoords added in v1.0.0

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

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

func UGMPChangePlayerPedColour added in v1.0.0

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

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

func UGMPChangeVehicleColourRGB added in v1.0.0

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

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

func UGMPChangeVehiclePearlColour added in v1.0.0

func UGMPChangeVehiclePearlColour(vehicleid, color int)

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

func UGMPChangeVehiclePearlColourRGB added in v1.0.0

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

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

func UGMPCreateExtraWeather added in v1.0.0

func UGMPCreateExtraWeather(weatherHandlingType, weatherType, colourFilter int) int

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

func UGMPDestroyExtraWeather added in v1.0.0

func UGMPDestroyExtraWeather(extraWeatherID int) int

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

func UGMPEnableRadioAutoTune added in v1.0.0

func UGMPEnableRadioAutoTune(toggle bool)

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

func UGMPGetNumPedModels added in v1.0.0

func UGMPGetNumPedModels() int

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

func UGMPGetNumVehicleModels added in v1.0.0

func UGMPGetNumVehicleModels() int

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

func UGMPGetNumWeaponModels added in v1.0.0

func UGMPGetNumWeaponModels() int

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

func UGMPGetRadioStationName added in v1.0.0

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

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

func UGMPGetRandomPedModel added in v1.0.0

func UGMPGetRandomPedModel() int

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

func UGMPGetRandomVehicleModel added in v1.0.0

func UGMPGetRandomVehicleModel() int

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

func UGMPGetRandomWeaponModel added in v1.0.0

func UGMPGetRandomWeaponModel() int

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

func UGMPGetRandomWeaponType added in v1.0.0

func UGMPGetRandomWeaponType() int

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

func UGMPGetValidPedModelAt added in v1.0.0

func UGMPGetValidPedModelAt(index int) int

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

func UGMPGetValidVehicleModelAt added in v1.0.0

func UGMPGetValidVehicleModelAt(index int) int

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

func UGMPGetValidWeaponModelAt added in v1.0.0

func UGMPGetValidWeaponModelAt(index int) int

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

func UGMPGetValidWeaponTypeAt added in v1.0.0

func UGMPGetValidWeaponTypeAt(index int) int

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

func UGMPGetVehicleComponentTypeEx added in v1.0.0

func UGMPGetVehicleComponentTypeEx(component int) int

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

func UGMPGetVehicleRadioStation added in v1.0.0

func UGMPGetVehicleRadioStation(vehicleid int)

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

func UGMPGetWeaponHighestParentType added in v1.0.0

func UGMPGetWeaponHighestParentType(weapontype int) int

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

func UGMPInitialiseDiscordRichPresence added in v1.0.0

func UGMPInitialiseDiscordRichPresence(applicationID string)

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

func UGMPIsRadioAutoTuneEnabled added in v1.0.0

func UGMPIsRadioAutoTuneEnabled() bool

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

func UGMPIsRubbishVisibleForPlayer added in v1.0.0

func UGMPIsRubbishVisibleForPlayer(playerid int) bool

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

func UGMPIsSASunPositionFormulaEnabled added in v1.0.0

func UGMPIsSASunPositionFormulaEnabled(playerid int) int

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

func UGMPIsValidAnimationAndLibrary added in v1.0.0

func UGMPIsValidAnimationAndLibrary(animlib, animname string) bool

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

func UGMPIsValidPedModel added in v1.0.0

func UGMPIsValidPedModel(modelid int) bool

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

func UGMPIsValidVehicleModel added in v1.0.0

func UGMPIsValidVehicleModel(modelid int) bool

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

func UGMPIsValidWeaponModel added in v1.0.0

func UGMPIsValidWeaponModel(modelid int) bool

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

func UGMPIsValidWeaponType added in v1.0.0

func UGMPIsValidWeaponType(weapontype int) bool

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

func UGMPMT19937_Random added in v1.0.0

func UGMPMT19937_Random(a, b int) int

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

func UGMPSetAircraftHeightLimitForPlayer added in v1.0.0

func UGMPSetAircraftHeightLimitForPlayer(playerid int, limit float32) bool

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

func UGMPSetCurrentSeason added in v1.0.0

func UGMPSetCurrentSeason(season int)

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

func UGMPSetExtraWeatherParam_Flags added in v1.0.0

func UGMPSetExtraWeatherParam_Flags(extraweatherid, flags int) int

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

func UGMPSetExtraWeatherParam_Float added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

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 added in v1.0.0

func UGMPSetExtraWeatherParam_Windyness(extraweatherid int, windyness float32) int

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

func UGMPSetPlayerFireProof added in v1.0.0

func UGMPSetPlayerFireProof(playerid int, enable bool)

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

func UGMPSetPlayerKnockedOffBikeState added in v1.0.0

func UGMPSetPlayerKnockedOffBikeState(playerid, knockState int)

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

func UGMPSetPlayerSeason added in v1.0.0

func UGMPSetPlayerSeason(playerid, season int)

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

func UGMPSetVehicleRadioStation added in v1.0.0

func UGMPSetVehicleRadioStation(vehicleid, station int)

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

func UGMPShutdownDiscordRichPresence added in v1.0.0

func UGMPShutdownDiscordRichPresence()

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

func UGMPToggleFluffyClouds added in v1.0.0

func UGMPToggleFluffyClouds(enable bool)

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

func UGMPToggleLowClouds added in v1.0.0

func UGMPToggleLowClouds(enable bool)

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

func UGMPToggleMoon added in v1.0.0

func UGMPToggleMoon(enable bool)

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

func UGMPTogglePlayerCCTV added in v1.0.0

func UGMPTogglePlayerCCTV(playerid int, enable bool)

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

func UGMPTogglePlayerDarknessFilter added in v1.0.0

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

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

func UGMPTogglePlayerFluffyClouds added in v1.0.0

func UGMPTogglePlayerFluffyClouds(playerid int, enable bool)

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

func UGMPTogglePlayerFogOverlay added in v1.0.0

func UGMPTogglePlayerFogOverlay(playerid int, enable bool)

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

func UGMPTogglePlayerGrass added in v1.0.0

func UGMPTogglePlayerGrass(playerid int, enable bool)

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

func UGMPTogglePlayerInfiniteSprint added in v1.0.0

func UGMPTogglePlayerInfiniteSprint(playerid int, enable bool)

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

func UGMPTogglePlayerInfraRed added in v1.0.0

func UGMPTogglePlayerInfraRed(playerid int, enable bool)

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

func UGMPTogglePlayerLowClouds added in v1.0.0

func UGMPTogglePlayerLowClouds(playerid int, enable bool)

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

func UGMPTogglePlayerMoon added in v1.0.0

func UGMPTogglePlayerMoon(playerid int, enable bool)

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

func UGMPTogglePlayerNightVision added in v1.0.0

func UGMPTogglePlayerNightVision(playerid int, enable bool)

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

func UGMPTogglePlayerRainbow added in v1.0.0

func UGMPTogglePlayerRainbow(playerid int, enable bool)

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

func UGMPTogglePlayerRubbish added in v1.0.0

func UGMPTogglePlayerRubbish(playerid int, enable bool)

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

func UGMPTogglePlayerStars added in v1.0.0

func UGMPTogglePlayerStars(playerid int, enable bool)

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

func UGMPTogglePlayerSun added in v1.0.0

func UGMPTogglePlayerSun(playerid int, enable bool)

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

func UGMPTogglePlayerVideoCameraOverlay added in v1.0.0

func UGMPTogglePlayerVideoCameraOverlay(playerid int, enable bool)

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

func UGMPToggleRainbow added in v1.0.0

func UGMPToggleRainbow(enable bool)

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

func UGMPToggleSASunPositionFormula added in v1.0.0

func UGMPToggleSASunPositionFormula(enable bool)

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

func UGMPToggleSASunPositionFormula_Pl added in v1.0.0

func UGMPToggleSASunPositionFormula_Pl(playerid int, enable bool)

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

func UGMPToggleStars added in v1.0.0

func UGMPToggleStars(enable bool)

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

func UGMPToggleVehicleColorRGB added in v1.0.0

func UGMPToggleVehicleColorRGB(vehicleid, color int, enable bool)

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

func UGMPUpdateDiscordRichPresence added in v1.0.0

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

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

func UnBlockIpAddress added in v1.0.0

func UnBlockIpAddress(ip_address string) bool

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

func Update3DTextLabelText added in v1.0.0

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

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

func UpdatePlayer3DTextLabelText added in v1.0.0

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

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

func UpdateVehicleDamageStatus added in v1.0.0

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

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

func UsePlayerPedAnims added in v1.0.0

func UsePlayerPedAnims() bool

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

func VectorSize added in v1.0.0

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