Documentation ¶
Index ¶
- Constants
- Variables
- func Branch() string
- func Debug() bool
- func DeleteMetaData(key string)
- func DeleteSyncedMetaData(key string)
- func EmitAllClients(eventName string, args ...interface{})
- func EmitClient(player *Player, eventName string, args ...interface{})
- func EmitClients(players []*Player, eventName string, args ...interface{})
- func EmitServer(eventName string, args ...interface{})
- func Export(name string, export interface{}) bool
- func FileExists(str string) bool
- func FileRead(str string) string
- func GetEntityByID(id uint16) interface{}
- func GetMetaData(key string) interface{}
- func GetSyncedMetaData(key string) interface{}
- func HasMetaData(key string) bool
- func HasSyncedMetaData(key string) bool
- func Hash(str string) uint32
- func Import(resource string, name string) interface{}
- func LogColored(args ...interface{})
- func LogDebug(args ...interface{})
- func LogError(args ...interface{})
- func LogInfo(args ...interface{})
- func LogWarning(args ...interface{})
- func NewArgArray(args []interface{}) (*C.struct_data, C.ulonglong)
- func RestartResource(name string) bool
- func RootDir() string
- func SDKVersion() uint32
- func SetMetaData(key string, value interface{})
- func SetPassword(password string)
- func SetSyncedMetaData(key string, value interface{})
- func StartResource(name string) bool
- func StopResource(name string)
- func Version() string
- type Base
- type BaseObject
- type BaseObjectType
- type Checkpoint
- func (c Checkpoint) CheckpointType() uint8
- func (c Checkpoint) Color() RGBA
- func (c Checkpoint) Height() float32
- func (c Checkpoint) NextPosition() Vector3
- func (c Checkpoint) Radius() float32
- func (c Checkpoint) SetCheckpointType(checkpointType uint8)
- func (c Checkpoint) SetColor(color RGBA)
- func (c Checkpoint) SetHeight(height float32)
- func (c Checkpoint) SetNextPosition(pos Vector3)
- func (c Checkpoint) SetRadius(radius float32)
- type Cloth
- type Cmd
- type ColShape
- func CreateColShapeCircle(x float32, y float32, z float32, radius float32) *ColShape
- func CreateColShapeCube(x1 float32, y1 float32, z1 float32, x2 float32, y2 float32, z2 float32) *ColShape
- func CreateColShapeCylinder(x float32, y float32, z float32, radius float32, height float32) *ColShape
- func CreateColShapeRectangle(x1 float32, y1 float32, x2 float32, y2 float32, z float32) *ColShape
- func CreateColShapeSphere(x float32, y float32, z float32, radius float32) *ColShape
- func NewColShape(c unsafe.Pointer) *ColShape
- type DlcCloth
- type DlcProp
- type Entity
- func (e Entity) AttachToEntity(entity Entity, otherBoneIndex int16, myBoneIndex int16, position Vector3, ...)
- func (e Entity) DeleteStreamSyncedMetaData(key string)
- func (e Entity) DeleteSyncedMetaData(key string)
- func (e Entity) Detach()
- func (e Entity) GetStreamSyncedMetaData(key string) interface{}
- func (e Entity) GetSyncedMetaData(key string) interface{}
- func (e Entity) HasStreamSyncedMetaData(key string) bool
- func (e Entity) HasSyncedMetaData(key string) bool
- func (e Entity) ID() uint16
- func (e Entity) Model() uint32
- func (e Entity) NetworkOwner() *Player
- func (e Entity) Rotation() Vector3
- func (e Entity) SetNetworkOwner(owner *Player, disableMigration bool)
- func (e Entity) SetRotation(rotation Vector3)
- func (e Entity) SetStreamSyncedMetaData(key string, value interface{})
- func (e Entity) SetStreamed(toggle bool)
- func (e Entity) SetSyncedMetaData(key string, value interface{})
- func (e Entity) SetVisible(toggle bool)
- func (e Entity) Streamed() bool
- func (e Entity) Visible() bool
- type FireInfo
- type Invoker
- type MValue
- type MValueFunc
- type MValueType
- type NumberPlateStyle
- type Player
- func (p Player) AddWeaponComponent(weapon uint32, component uint32)
- func (p Player) AimPos() Vector3
- func (p Player) Armour() uint16
- func (p Player) AuthToken() string
- func (p Player) ClearBloodDamage()
- func (p Player) ClearProps(component uint8)
- func (p Player) Clothes(component uint8) Cloth
- func (p Player) CurrentWeapon() uint32
- func (p Player) CurrentWeaponComponents() []uint32
- func (p Player) CurrentWeaponTintIndex() uint32
- func (p Player) DlcClothes(component uint8) DlcCloth
- func (p Player) DlcProps(component uint8) DlcProp
- func (p *Player) Emit(eventName string, args ...interface{})
- func (p Player) EntityAimOffset() Vector3
- func (p Player) EntityAimingAt() *Entity
- func (p Player) GiveWeapon(weapon uint32, ammo int64, selectWeapon bool)
- func (p Player) HasWeaponComponent(weapon uint32, component uint32) bool
- func (p Player) HeadRotation() Vector3
- func (p Player) Health() float32
- func (p Player) HwidExHash() uint64
- func (p Player) HwidHash() uint64
- func (p Player) IP() string
- func (p Player) Invincible() bool
- func (p Player) IsAiming() bool
- func (p Player) IsConnected() bool
- func (p Player) IsDead() bool
- func (p Player) IsEntityInStreamingRange(entity Entity) bool
- func (p Player) IsFlashlightActive() bool
- func (p Player) IsInRagdoll() bool
- func (p Player) IsInVehicle() bool
- func (p Player) IsJumping() bool
- func (p Player) IsReloading() bool
- func (p Player) IsShooting() bool
- func (p Player) Kick(reason string)
- func (p Player) MaxArmour() uint16
- func (p Player) MaxHealth() uint16
- func (p Player) MoveSpeed() float32
- func (p Player) Name() string
- func (p Player) Ping() uint32
- func (p Player) Props(component uint8) Prop
- func (p Player) RemoveAllWeapons()
- func (p Player) RemoveWeapon(weapon uint32)
- func (p Player) RemoveWeaponComponent(weapon uint32, component uint32)
- func (p Player) Seat() uint8
- func (p Player) SetArmour(armour uint16)
- func (p Player) SetClothes(component uint8, drawable uint16, texture uint8, palette uint8)
- func (p Player) SetCurrentWeapon(weapon uint32)
- func (p Player) SetDateTime(day int, month int, year int, hour int, minute int, second int)
- func (p Player) SetDlcClothes(component uint8, drawable uint16, texture uint8, palette uint8, dlc uint32)
- func (p Player) SetDlcProps(component uint8, drawable uint16, texture uint8, dlc uint32)
- func (p Player) SetHealth(health uint16)
- func (p Player) SetIntoVehicle(v *Vehicle, seat uint8)
- func (p Player) SetInvincible(toggle bool)
- func (p Player) SetMaxArmour(maxArmour uint16)
- func (p Player) SetMaxHealth(maxHealth uint16)
- func (p Player) SetModel(model uint32)
- func (p Player) SetProps(component uint8, drawable uint16, texture uint8)
- func (p Player) SetWeaponTintIndex(weapon uint32, tintIndex uint8)
- func (p Player) SetWeather(weather uint32)
- func (p Player) SocialID() uint64
- func (p Player) Spawn(pos Vector3, delayMs uint32)
- func (p Player) Vehicle() *Vehicle
- func (p Player) WeaponTintIndex(weapon uint32) uint32
- type Prop
- type RGBA
- type RadioStation
- type Vector2
- type Vector3
- type Vehicle
- func (v Vehicle) AppearanceDataBase64() string
- func (v Vehicle) ArmoredWindowHealth(window uint8) float32
- func (v Vehicle) ArmoredWindowShootCount(window uint8) uint8
- func (v Vehicle) Attached() *Vehicle
- func (v Vehicle) AttachedTo() *Vehicle
- func (v Vehicle) BodyAdditionalHealth() uint32
- func (v Vehicle) BodyHealth() uint32
- func (v Vehicle) BumperDamageLevel(bumper uint8) uint8
- func (v Vehicle) CustomTires() bool
- func (v Vehicle) DamageDataBase64() string
- func (v Vehicle) DashboardColor() uint8
- func (v Vehicle) DirtLevel() uint8
- func (v Vehicle) DoesWheelHasTire(wheel uint8) bool
- func (v Vehicle) DoorState(door uint8) uint8
- func (v Vehicle) Driver() *Player
- func (v Vehicle) EngineHealth() int32
- func (v Vehicle) GameStateBase64() string
- func (v Vehicle) HasArmoredWindows() bool
- func (v Vehicle) HeadlightColor() uint8
- func (v Vehicle) HealthDataBase64() string
- func (v Vehicle) InteriorColor() uint8
- func (v Vehicle) IsDaylightOn() bool
- func (v Vehicle) IsDestroyed() bool
- func (v Vehicle) IsEngineOn() bool
- func (v Vehicle) IsExtraOn(id uint8) bool
- func (v Vehicle) IsFlamethrowerActive() bool
- func (v Vehicle) IsHandbrakeActive() bool
- func (v Vehicle) IsLightDamaged(light uint8) bool
- func (v Vehicle) IsManualEngineControl() bool
- func (v Vehicle) IsNeonActive() bool
- func (v Vehicle) IsNightlightOn() bool
- func (v Vehicle) IsPrimaryColorRGB() bool
- func (v Vehicle) IsSecondaryColorRGB() bool
- func (v Vehicle) IsSirenActive() bool
- func (v Vehicle) IsSpecialLightDamaged(light uint8) bool
- func (v Vehicle) IsTireSmokeColorCustom() bool
- func (v Vehicle) IsWheelBurst(wheel uint8) bool
- func (v Vehicle) IsWheelDetached(wheel uint8) bool
- func (v Vehicle) IsWheelOnFire(wheel uint8) bool
- func (v Vehicle) IsWindowDamaged(window uint8) bool
- func (v Vehicle) IsWindowOpened(window uint8) bool
- func (v Vehicle) LightsMultiplier() float32
- func (v Vehicle) Livery() uint8
- func (v Vehicle) LockState() uint8
- func (v Vehicle) Mod(category VehicleModCategory) uint8
- func (v Vehicle) ModKit() uint8
- func (v Vehicle) ModKitsCount() uint8
- func (v Vehicle) ModsCount(category VehicleModCategory) uint8
- func (v Vehicle) NeonActive() (front bool, left bool, right bool, back bool)
- func (v Vehicle) NeonColor() RGBA
- func (v Vehicle) NumberPlateIndex() uint32
- func (v Vehicle) NumberPlateText() string
- func (v Vehicle) PartBulletHoles(part uint8) uint8
- func (v Vehicle) PartDamageLevel(part uint8) uint8
- func (v Vehicle) PearlColor() uint8
- func (v Vehicle) PetrolTankHealth() int32
- func (v Vehicle) PrimaryColor() uint8
- func (v Vehicle) PrimaryColorRGB() RGBA
- func (v Vehicle) RadioStationIndex() uint32
- func (v Vehicle) RearWheelVariation() uint8
- func (v Vehicle) RepairsCount() uint8
- func (v Vehicle) RoofLivery() uint8
- func (v Vehicle) RoofState() uint8
- func (v Vehicle) ScriptDataBase64() string
- func (v Vehicle) SecondaryColor() uint8
- func (v Vehicle) SecondaryColorRGB() RGBA
- func (v Vehicle) SetArmoredWindowHealth(windowId uint8, health float32)
- func (v Vehicle) SetArmoredWindowShootCount(windowId uint8, count uint8)
- func (v Vehicle) SetBodyAdditionalHealth(health uint32)
- func (v Vehicle) SetBodyHealth(health uint32)
- func (v Vehicle) SetBumperDamageLevel(bumperId uint8, damageLevel uint8)
- func (v Vehicle) SetCustomTires(state bool)
- func (v Vehicle) SetDashboardColor(color uint8)
- func (v Vehicle) SetDirtLevel(dirt uint8)
- func (v Vehicle) SetDoorState(doorId uint8, state uint8)
- func (v Vehicle) SetEngineHealth(health int32)
- func (v Vehicle) SetEngineOn(state bool)
- func (v Vehicle) SetFixed()
- func (v Vehicle) SetHeadlightColor(color uint8)
- func (v Vehicle) SetInteriorColor(color uint8)
- func (v Vehicle) SetLightDamaged(lightId uint8, isDamaged bool)
- func (v Vehicle) SetLightsMultiplier(multiplier float32)
- func (v Vehicle) SetLivery(livery uint8)
- func (v Vehicle) SetLockState(state uint8)
- func (v Vehicle) SetManualEngineControl(state bool)
- func (v Vehicle) SetMod(category uint8, id uint8) bool
- func (v Vehicle) SetModKit(id uint8) bool
- func (v Vehicle) SetNeonActive(front bool, left bool, right bool, back bool)
- func (v Vehicle) SetNeonColor(color RGBA)
- func (v Vehicle) SetNumberplateIndex(index uint32)
- func (v Vehicle) SetNumberplateText(text string)
- func (v Vehicle) SetPartBulletHoles(partId uint8, shootsCount uint8)
- func (v Vehicle) SetPartDamageLevel(partId uint8, damage uint8)
- func (v Vehicle) SetPearlColor(color uint8)
- func (v Vehicle) SetPetrolTankHealth(health int32)
- func (v Vehicle) SetPrimaryColor(color uint8)
- func (v Vehicle) SetPrimaryColorRGB(color RGBA)
- func (v Vehicle) SetRadioStationIndex(stationIndex uint32)
- func (v Vehicle) SetRearWheels(variation uint8)
- func (v Vehicle) SetRoofLivery(roofLivery uint8)
- func (v Vehicle) SetRoofState(state uint8)
- func (v Vehicle) SetSecondaryColor(color uint8)
- func (v Vehicle) SetSecondaryColorRGB(color RGBA)
- func (v Vehicle) SetSirenActive(state bool)
- func (v Vehicle) SetSpecialDarkness(value uint8)
- func (v Vehicle) SetSpecialLightDamaged(specialLightId uint8, isDamaged bool)
- func (v Vehicle) SetTireSmokeColor(color RGBA)
- func (v Vehicle) SetWheelBurst(wheelId uint8, state bool)
- func (v Vehicle) SetWheelColor(color uint8)
- func (v Vehicle) SetWheelDetached(wheelId uint8, state bool)
- func (v Vehicle) SetWheelFixed(wheelId uint8)
- func (v Vehicle) SetWheelHasTire(wheelId uint8, state bool)
- func (v Vehicle) SetWheelHealth(wheelId uint8, health float32)
- func (v Vehicle) SetWheelOnFire(wheelId uint8, state bool)
- func (v Vehicle) SetWheels(wheelType uint8, variation uint8)
- func (v Vehicle) SetWindowDamaged(windowId uint8, isDamaged bool)
- func (v Vehicle) SetWindowOpened(windowId uint8, state bool)
- func (v Vehicle) SetWindowTint(tint uint8)
- func (v Vehicle) SpecialDarkness() uint8
- func (v Vehicle) TireSmokeColor() RGBA
- func (v Vehicle) ToggleExtra(extra uint8, state bool)
- func (v Vehicle) WheelColor() uint8
- func (v Vehicle) WheelHealth(wheel uint8) float32
- func (v Vehicle) WheelType() uint8
- func (v Vehicle) WheelVariation() uint8
- func (v Vehicle) WheelsCount() uint8
- func (v Vehicle) WindowTint() uint8
- type VehicleBumper
- type VehicleBumperDamage
- type VehicleDoor
- type VehicleDoorState
- type VehicleLockState
- type VehicleModCategory
- type VehiclePart
- type VehiclePartDamage
- type VoiceChannel
- func (v VoiceChannel) AddPlayer(player *Player)
- func (v VoiceChannel) HasPlayer(player *Player) bool
- func (v VoiceChannel) IsPlayerMuted(player *Player) bool
- func (v VoiceChannel) IsSpatial() bool
- func (v VoiceChannel) MaxDistance() float32
- func (v VoiceChannel) MutePlayer(player *Player)
- func (v VoiceChannel) RemovePlayer(player *Player)
- func (v VoiceChannel) UnmutePlayer(player *Player)
- type WindowTint
- type World
- type WorldObject
Constants ¶
Variables ¶
View Source
var On = &eventManager{}
View Source
var Resource *resource
Functions ¶
func DeleteMetaData ¶
func DeleteMetaData(key string)
func DeleteSyncedMetaData ¶
func DeleteSyncedMetaData(key string)
func EmitAllClients ¶
func EmitAllClients(eventName string, args ...interface{})
func EmitClient ¶
func EmitClients ¶
func EmitServer ¶
func EmitServer(eventName string, args ...interface{})
func FileExists ¶
func GetEntityByID ¶
func GetEntityByID(id uint16) interface{}
func GetMetaData ¶
func GetMetaData(key string) interface{}
func GetSyncedMetaData ¶
func GetSyncedMetaData(key string) interface{}
func HasMetaData ¶
func HasSyncedMetaData ¶
func LogColored ¶
func LogColored(args ...interface{})
func LogWarning ¶
func LogWarning(args ...interface{})
func NewArgArray ¶
func NewArgArray(args []interface{}) (*C.struct_data, C.ulonglong)
NewArgArray internally used to convert values to CMValue array
func RestartResource ¶
func SDKVersion ¶
func SDKVersion() uint32
func SetMetaData ¶
func SetMetaData(key string, value interface{})
func SetPassword ¶
func SetPassword(password string)
func SetSyncedMetaData ¶
func SetSyncedMetaData(key string, value interface{})
func StartResource ¶
func StopResource ¶
func StopResource(name string)
Types ¶
type BaseObject ¶
type BaseObject struct { Ptr unsafe.Pointer Type BaseObjectType }
func (BaseObject) DeleteMetaData ¶
func (b BaseObject) DeleteMetaData(key string)
func (BaseObject) Destroy ¶
func (b BaseObject) Destroy()
func (BaseObject) GetMetaData ¶
func (b BaseObject) GetMetaData(key string) interface{}
func (BaseObject) HasMetaData ¶
func (b BaseObject) HasMetaData(key string) bool
func (BaseObject) SetMetaData ¶
func (b BaseObject) SetMetaData(key string, value interface{})
func (BaseObject) Valid ¶
func (b BaseObject) Valid() bool
type BaseObjectType ¶
type BaseObjectType = uint8
const ( PlayerObject BaseObjectType = iota VehicleObject BlipObject WebviewObject VoiceChannelObject ColshapeObject CheckpointObject WebSocketClientObject HttpClientObject AudioObject LocalPlayerObject )
type Checkpoint ¶
type Checkpoint struct {
ColShape
}
func CreateCheckpoint ¶
func CreateCheckpoint(checkpointType uint8, x float32, y float32, z float32, radius float32, height float32, color RGBA) *Checkpoint
CreateCheckpoint Create a checkpoint ! This method is unfinished in alt:V use at your own risk !
func NewCheckpoint ¶
func NewCheckpoint(cp unsafe.Pointer) *Checkpoint
func (Checkpoint) CheckpointType ¶
func (c Checkpoint) CheckpointType() uint8
func (Checkpoint) Color ¶
func (c Checkpoint) Color() RGBA
func (Checkpoint) Height ¶
func (c Checkpoint) Height() float32
func (Checkpoint) NextPosition ¶
func (c Checkpoint) NextPosition() Vector3
func (Checkpoint) Radius ¶
func (c Checkpoint) Radius() float32
func (Checkpoint) SetCheckpointType ¶
func (c Checkpoint) SetCheckpointType(checkpointType uint8)
func (Checkpoint) SetColor ¶
func (c Checkpoint) SetColor(color RGBA)
func (Checkpoint) SetHeight ¶
func (c Checkpoint) SetHeight(height float32)
func (Checkpoint) SetNextPosition ¶
func (c Checkpoint) SetNextPosition(pos Vector3)
func (Checkpoint) SetRadius ¶
func (c Checkpoint) SetRadius(radius float32)
type ColShape ¶
type ColShape struct {
WorldObject
}
func CreateColShapeCircle ¶
func CreateColShapeCube ¶
func CreateColShapeCylinder ¶
func CreateColShapeRectangle ¶
func CreateColShapeSphere ¶
func NewColShape ¶
func (ColShape) ColShapeType ¶
func (ColShape) IsEntityIn ¶
func (ColShape) IsPlayersOnly ¶
func (ColShape) SetPlayersOnly ¶
type Entity ¶
type Entity struct {
WorldObject
}
func (Entity) AttachToEntity ¶
func (e Entity) AttachToEntity(entity Entity, otherBoneIndex int16, myBoneIndex int16, position Vector3, rotation Vector3, collision bool, noFixedRotation bool)
AttachToEntity TODO: make capi accept x, y, z instead of Position and Rotation
func (Entity) DeleteStreamSyncedMetaData ¶
func (Entity) DeleteSyncedMetaData ¶
func (Entity) GetStreamSyncedMetaData ¶
func (Entity) GetSyncedMetaData ¶
func (Entity) HasStreamSyncedMetaData ¶
func (Entity) HasSyncedMetaData ¶
func (Entity) NetworkOwner ¶
func (Entity) SetNetworkOwner ¶
func (Entity) SetRotation ¶
func (Entity) SetStreamSyncedMetaData ¶
func (Entity) SetStreamed ¶
func (Entity) SetSyncedMetaData ¶
func (Entity) SetVisible ¶
type Invoker ¶
type Invoker struct {
// contains filtered or unexported fields
}
func (Invoker) ExecuteCmd ¶
func (Invoker) RegisterCmd ¶
type MValue ¶
type MValue struct { Ptr unsafe.Pointer Type MValueType Value interface{} }
func CreateMValue ¶
func CreateMValue(value interface{}) *MValue
func (MValue) GetType ¶
func (v MValue) GetType() MValueType
type MValueFunc ¶
type MValueFunc = func(args ...interface{}) interface{}
type MValueType ¶
type MValueType = uint8
const ( MValueNone MValueType = iota MValueNil MValueBool MValueInt MValueUInt MValueDouble MValueString MValueList MValueDict MValueBaseObject MValueFunction MValueVector3 MValueRGBA MValueByteArray MValueVector2 )
type NumberPlateStyle ¶
type NumberPlateStyle = uint8
const ( BlueWhite NumberPlateStyle = iota BlueWhite2 BlueWhite3 Yankton YellowBlack YellowBlue )
type Player ¶
type Player struct {
Entity
}
func GetPlayers ¶
func GetPlayers() []*Player
func GetPlayersByName ¶
func (Player) AddWeaponComponent ¶
func (Player) ClearBloodDamage ¶
func (p Player) ClearBloodDamage()
func (Player) ClearProps ¶
func (Player) CurrentWeapon ¶
func (Player) CurrentWeaponComponents ¶
func (Player) CurrentWeaponTintIndex ¶
func (Player) DlcClothes ¶
func (Player) EntityAimOffset ¶
func (Player) EntityAimingAt ¶
EntityAimingAt TODO: make proper entity struct
func (Player) HasWeaponComponent ¶
func (Player) HeadRotation ¶
func (Player) HwidExHash ¶
func (Player) Invincible ¶
func (Player) IsConnected ¶
func (Player) IsEntityInStreamingRange ¶
func (Player) IsFlashlightActive ¶
func (Player) IsInRagdoll ¶
func (Player) IsInVehicle ¶
func (Player) IsReloading ¶
func (Player) IsShooting ¶
func (Player) RemoveAllWeapons ¶
func (p Player) RemoveAllWeapons()
func (Player) RemoveWeapon ¶
func (Player) RemoveWeaponComponent ¶
func (Player) SetClothes ¶
func (Player) SetCurrentWeapon ¶
func (Player) SetDateTime ¶
func (Player) SetDlcClothes ¶
func (Player) SetDlcProps ¶
func (Player) SetIntoVehicle ¶
func (Player) SetInvincible ¶
func (Player) SetMaxArmour ¶
func (Player) SetMaxHealth ¶
func (Player) SetWeaponTintIndex ¶
func (Player) SetWeather ¶
func (Player) WeaponTintIndex ¶
type RadioStation ¶
type RadioStation = uint8
const ( BlaineCountyRadio RadioStation = iota ChannelX EastLosFm FlyloFm LosSantosRockRadio NonStopPopFm RadioLosSantos RadioMirrorPark RadioOff RebelRadio SelfRadio SoulwaxFm Space TheBlueArk TheLab TheLowdown VinewoodBoulevardRadio WestCoastClassics WestCoastTalkRadio WorldWideFm )
type Vehicle ¶
type Vehicle struct {
Entity
}
func GetVehicles ¶
func GetVehicles() []*Vehicle
func NewVehicle ¶
func (Vehicle) AppearanceDataBase64 ¶
func (Vehicle) ArmoredWindowHealth ¶
func (Vehicle) ArmoredWindowShootCount ¶
func (Vehicle) AttachedTo ¶
func (Vehicle) BodyAdditionalHealth ¶
func (Vehicle) BodyHealth ¶
func (Vehicle) BumperDamageLevel ¶
func (Vehicle) CustomTires ¶
func (Vehicle) DamageDataBase64 ¶
func (Vehicle) DashboardColor ¶
func (Vehicle) DoesWheelHasTire ¶
func (Vehicle) EngineHealth ¶
func (Vehicle) GameStateBase64 ¶
func (Vehicle) HasArmoredWindows ¶
func (Vehicle) HeadlightColor ¶
func (Vehicle) HealthDataBase64 ¶
func (Vehicle) InteriorColor ¶
func (Vehicle) IsDaylightOn ¶
func (Vehicle) IsDestroyed ¶
func (Vehicle) IsEngineOn ¶
func (Vehicle) IsFlamethrowerActive ¶
func (Vehicle) IsHandbrakeActive ¶
func (Vehicle) IsLightDamaged ¶
func (Vehicle) IsManualEngineControl ¶
func (Vehicle) IsNeonActive ¶
func (Vehicle) IsNightlightOn ¶
func (Vehicle) IsPrimaryColorRGB ¶
func (Vehicle) IsSecondaryColorRGB ¶
func (Vehicle) IsSirenActive ¶
func (Vehicle) IsSpecialLightDamaged ¶
func (Vehicle) IsTireSmokeColorCustom ¶
func (Vehicle) IsWheelBurst ¶
func (Vehicle) IsWheelDetached ¶
func (Vehicle) IsWheelOnFire ¶
func (Vehicle) IsWindowDamaged ¶
func (Vehicle) IsWindowOpened ¶
func (Vehicle) LightsMultiplier ¶
func (Vehicle) Mod ¶
func (v Vehicle) Mod(category VehicleModCategory) uint8
func (Vehicle) ModKitsCount ¶
func (Vehicle) ModsCount ¶
func (v Vehicle) ModsCount(category VehicleModCategory) uint8
func (Vehicle) NeonActive ¶
func (Vehicle) NumberPlateIndex ¶
func (Vehicle) NumberPlateText ¶
func (Vehicle) PartBulletHoles ¶
func (Vehicle) PartDamageLevel ¶
func (Vehicle) PearlColor ¶
func (Vehicle) PetrolTankHealth ¶
func (Vehicle) PrimaryColor ¶
func (Vehicle) PrimaryColorRGB ¶
func (Vehicle) RadioStationIndex ¶
func (Vehicle) RearWheelVariation ¶
func (Vehicle) RepairsCount ¶
func (Vehicle) RoofLivery ¶
func (Vehicle) ScriptDataBase64 ¶
func (Vehicle) SecondaryColor ¶
func (Vehicle) SecondaryColorRGB ¶
func (Vehicle) SetArmoredWindowHealth ¶
func (Vehicle) SetArmoredWindowShootCount ¶
func (Vehicle) SetBodyAdditionalHealth ¶
func (Vehicle) SetBodyHealth ¶
func (Vehicle) SetBumperDamageLevel ¶
func (Vehicle) SetCustomTires ¶
func (Vehicle) SetDashboardColor ¶
func (Vehicle) SetDirtLevel ¶
func (Vehicle) SetDoorState ¶
func (Vehicle) SetEngineHealth ¶
func (Vehicle) SetEngineOn ¶
func (Vehicle) SetHeadlightColor ¶
func (Vehicle) SetInteriorColor ¶
func (Vehicle) SetLightDamaged ¶
func (Vehicle) SetLightsMultiplier ¶
func (Vehicle) SetLockState ¶
func (Vehicle) SetManualEngineControl ¶
func (Vehicle) SetNeonActive ¶
func (Vehicle) SetNeonColor ¶
func (Vehicle) SetNumberplateIndex ¶
func (Vehicle) SetNumberplateText ¶
func (Vehicle) SetPartBulletHoles ¶
func (Vehicle) SetPartDamageLevel ¶
func (Vehicle) SetPearlColor ¶
func (Vehicle) SetPetrolTankHealth ¶
func (Vehicle) SetPrimaryColor ¶
func (Vehicle) SetPrimaryColorRGB ¶
func (Vehicle) SetRadioStationIndex ¶
func (Vehicle) SetRearWheels ¶
func (Vehicle) SetRoofLivery ¶
func (Vehicle) SetRoofState ¶
func (Vehicle) SetSecondaryColor ¶
func (Vehicle) SetSecondaryColorRGB ¶
func (Vehicle) SetSirenActive ¶
func (Vehicle) SetSpecialDarkness ¶
func (Vehicle) SetSpecialLightDamaged ¶
func (Vehicle) SetTireSmokeColor ¶
func (Vehicle) SetWheelBurst ¶
func (Vehicle) SetWheelColor ¶
func (Vehicle) SetWheelDetached ¶
func (Vehicle) SetWheelFixed ¶
func (Vehicle) SetWheelHasTire ¶
func (Vehicle) SetWheelHealth ¶
func (Vehicle) SetWheelOnFire ¶
func (Vehicle) SetWindowDamaged ¶
func (Vehicle) SetWindowOpened ¶
func (Vehicle) SetWindowTint ¶
func (Vehicle) SpecialDarkness ¶
func (Vehicle) TireSmokeColor ¶
func (Vehicle) ToggleExtra ¶
func (Vehicle) WheelColor ¶
func (Vehicle) WheelHealth ¶
func (Vehicle) WheelVariation ¶
func (Vehicle) WheelsCount ¶
func (Vehicle) WindowTint ¶
type VehicleBumperDamage ¶
type VehicleBumperDamage = uint8
const ( BumperDamaged VehicleBumperDamage = iota BumperNone BumperNotDamaged )
type VehicleDoor ¶
type VehicleDoor = uint8
const ( DoorDriverFront VehicleDoor = iota DoorDriverRear DoorHood DoorPassengerFront DoorPassengerRear DoorTrunk )
type VehicleDoorState ¶
type VehicleDoorState = uint8
const ( Closed VehicleDoorState = iota OpenedLevel1 OpenedLevel2 OpenedLevel3 OpenedLevel4 OpenedLevel5 OpenedLevel6 OpenedLevel7 Unknown )
type VehicleLockState ¶
type VehicleLockState = uint8
const ( ForceDoorsShut VehicleLockState = iota InitiallyLocked LockPlayerInside Locked LockedCanBeDamaged LockoutPlayerOnly None Unlocked )
type VehicleModCategory ¶
type VehicleModCategory = uint8
const ( Aerials VehicleModCategory = iota AirFilter ArchCover Armor BackWheels Brakes ColumnShifterLeavers Dashboard Dial DoorSpeaker Engine EngineBlock Exhaust Fender Frame FrontBumper FrontWheels Grille Hood Horn Hydraulics Livery Ornaments Plaques Plateholder RearBumper RightFender Roof Seats SideSkirt Speakers Spoiler SteeringWheel Struts Suspension Tank TireSmoke Transmission Trim TrimDesign Trunk Turbo Unk1 Unk2 Unk3 Unk4 VanityPlates Windows XenonLights )
type VehiclePart ¶
type VehiclePart = uint8
const ( FrontLeft VehiclePart = iota FrontRight MiddleLeft MiddleRight RearLeft RearRight )
type VehiclePartDamage ¶
type VehiclePartDamage = uint8
const ( PartDamagedLevel1 VehiclePartDamage = iota PartDamagedLevel2 PartDamagedLevel3 PartNotDamaged )
type VoiceChannel ¶
type VoiceChannel struct {
BaseObject
}
func CreateVoiceChannel ¶
func CreateVoiceChannel(spatial bool, maxDistance float32) *VoiceChannel
func NewVoiceChannel ¶
func NewVoiceChannel(v unsafe.Pointer) *VoiceChannel
func (VoiceChannel) AddPlayer ¶
func (v VoiceChannel) AddPlayer(player *Player)
func (VoiceChannel) HasPlayer ¶
func (v VoiceChannel) HasPlayer(player *Player) bool
func (VoiceChannel) IsPlayerMuted ¶
func (v VoiceChannel) IsPlayerMuted(player *Player) bool
func (VoiceChannel) IsSpatial ¶
func (v VoiceChannel) IsSpatial() bool
func (VoiceChannel) MaxDistance ¶
func (v VoiceChannel) MaxDistance() float32
func (VoiceChannel) MutePlayer ¶
func (v VoiceChannel) MutePlayer(player *Player)
func (VoiceChannel) RemovePlayer ¶
func (v VoiceChannel) RemovePlayer(player *Player)
func (VoiceChannel) UnmutePlayer ¶
func (v VoiceChannel) UnmutePlayer(player *Player)
type WindowTint ¶
type WindowTint = uint8
const ( TintDarkSmoke WindowTint = iota TintGreen TintLightSmoke TintLimo TintNone TintPureBlack TintStock )
type WorldObject ¶
type WorldObject struct {
BaseObject
}
func (WorldObject) Dimension ¶
func (w WorldObject) Dimension() int32
func (WorldObject) Position ¶
func (w WorldObject) Position() Vector3
func (WorldObject) SetDimension ¶
func (w WorldObject) SetDimension(dimension int32)
func (WorldObject) SetPosition ¶
func (w WorldObject) SetPosition(pos Vector3)
Click to show internal directories.
Click to hide internal directories.