Documentation
¶
Index ¶
- func CreateVehicle(model uint32, pos Vector3, rot Vector3) (entity.Vehicle, error)
- func Hash(data []byte) uint32
- func HashSHA256(data []byte) []byte
- func IsMetaNotExist(err error) bool
- func PlayerByID(id uint32) (entity.Player, error)
- func Players() []entity.Player
- func StopServer()
- func VehicleByID(id uint32) (entity.Vehicle, error)
- func Vehicles() []entity.Vehicle
- type BoneInfo
- type Cloth
- type ConnectionInfo
- func (c *ConnectionInfo) Accept(sendNames bool)
- func (c *ConnectionInfo) Accepted() bool
- func (c *ConnectionInfo) AuthToken() string
- func (c *ConnectionInfo) Branch() string
- func (c *ConnectionInfo) Build() uint32
- func (c *ConnectionInfo) CDNUrl() string
- func (c *ConnectionInfo) CloudAuthHash() string
- func (c *ConnectionInfo) Debug() bool
- func (c *ConnectionInfo) Decline(reason string)
- func (c *ConnectionInfo) DiscordUserID() int64
- func (c *ConnectionInfo) HwIdExHash() uint64
- func (c *ConnectionInfo) HwIdHash() uint64
- func (c *ConnectionInfo) ID() uint32
- func (c *ConnectionInfo) IP() string
- func (c *ConnectionInfo) Name() string
- func (c *ConnectionInfo) PasswordHash() uint64
- func (c *ConnectionInfo) SocialID() uint64
- func (c *ConnectionInfo) SocialName() string
- type DlcCloth
- type DlcProp
- type FireInfo
- type HeadBlendData
- type HeadOverlay
- type PedModelInfo
- type Prop
- type RGBA
- type Vector2
- type Vector3
- func (v Vector3) Add(v2 Vector3) Vector3
- func (v Vector3) AngleTo(v2 Vector3) (float64, bool)
- func (v Vector3) AngleToDegrees(v2 Vector3) (float64, bool)
- func (v Vector3) Cross(v2 Vector3) Vector3
- func (v Vector3) DistanceTo(v2 Vector3) float64
- func (v Vector3) DistanceToSquared(v2 Vector3) float64
- func (v Vector3) Div(v2 Vector3) Vector3
- func (v Vector3) Dot(v2 Vector3) float32
- func (v Vector3) IsInRange(v2 Vector3, r float64) bool
- func (v Vector3) Length() float64
- func (v Vector3) Lerp(v2 Vector3, ratio float32) Vector3
- func (v Vector3) MarshalJSON() ([]byte, error)
- func (v Vector3) Mul(v2 Vector3) Vector3
- func (v Vector3) Negative() Vector3
- func (v Vector3) Normalize() Vector3
- func (v Vector3) String() string
- func (v Vector3) Sub(v2 Vector3) Vector3
- func (v Vector3) ToDegrees() Vector3
- func (v Vector3) ToRadians() Vector3
- func (v *Vector3) UnmarshalJSON(raw []byte) error
- type VehicleModelInfo
- type VehicleModelType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateVehicle ¶
func HashSHA256 ¶
HashSHA256 hashes the given data using the sha256 algorithm.
func IsMetaNotExist ¶
Types ¶
type ConnectionInfo ¶
type ConnectionInfo struct {
// contains filtered or unexported fields
}
func NewConnectionInfo ¶
func NewConnectionInfo(ptr unsafe.Pointer, id uint32, name string, socialID uint64, socialName string, hwidHash uint64, hwidExHash uint64, authToken string, debug bool, branch string, build uint32, cdnUrl string, passwordHash uint64, ip string, discordUserId int64, cloudAuthHash string) *ConnectionInfo
NewConnectionInfo ! INTERNAL ONLY !
func (*ConnectionInfo) Accept ¶
func (c *ConnectionInfo) Accept(sendNames bool)
func (*ConnectionInfo) Accepted ¶
func (c *ConnectionInfo) Accepted() bool
func (*ConnectionInfo) AuthToken ¶
func (c *ConnectionInfo) AuthToken() string
func (*ConnectionInfo) Branch ¶
func (c *ConnectionInfo) Branch() string
func (*ConnectionInfo) Build ¶
func (c *ConnectionInfo) Build() uint32
func (*ConnectionInfo) CDNUrl ¶
func (c *ConnectionInfo) CDNUrl() string
func (*ConnectionInfo) CloudAuthHash ¶
func (c *ConnectionInfo) CloudAuthHash() string
func (*ConnectionInfo) Debug ¶
func (c *ConnectionInfo) Debug() bool
func (*ConnectionInfo) Decline ¶
func (c *ConnectionInfo) Decline(reason string)
func (*ConnectionInfo) DiscordUserID ¶
func (c *ConnectionInfo) DiscordUserID() int64
func (*ConnectionInfo) HwIdExHash ¶
func (c *ConnectionInfo) HwIdExHash() uint64
func (*ConnectionInfo) HwIdHash ¶
func (c *ConnectionInfo) HwIdHash() uint64
func (*ConnectionInfo) ID ¶
func (c *ConnectionInfo) ID() uint32
func (*ConnectionInfo) IP ¶
func (c *ConnectionInfo) IP() string
func (*ConnectionInfo) Name ¶
func (c *ConnectionInfo) Name() string
func (*ConnectionInfo) PasswordHash ¶
func (c *ConnectionInfo) PasswordHash() uint64
func (*ConnectionInfo) SocialID ¶
func (c *ConnectionInfo) SocialID() uint64
func (*ConnectionInfo) SocialName ¶
func (c *ConnectionInfo) SocialName() string
type HeadBlendData ¶
type HeadOverlay ¶
type PedModelInfo ¶
type RGBA ¶
type RGBA struct {
json.Marshaler
R uint8 `json:"r"`
G uint8 `json:"g"`
B uint8 `json:"b"`
A uint8 `json:"a"`
}
func (RGBA) MarshalJSON ¶
type Vector3 ¶
func (Vector3) DistanceTo ¶
func (Vector3) DistanceToSquared ¶
func (Vector3) MarshalJSON ¶
func (*Vector3) UnmarshalJSON ¶
type VehicleModelInfo ¶
type VehicleModelInfo struct {
Title string
ModelType VehicleModelType
WheelsCount uint8
ArmoredWindows bool
AutoAttachTrailer bool
Bones []BoneInfo
PrimaryColor uint8
SecondaryColor uint8
PearlColor uint8
WheelsColor uint8
InteriorColor uint8
DashboardColor uint8
ModKits [2]uint16
Extras uint16
DefaultExtras uint16
}
func (*VehicleModelInfo) DoesExtraDefault ¶
func (v *VehicleModelInfo) DoesExtraDefault(extraId uint8) bool
func (*VehicleModelInfo) DoesExtraExist ¶
func (v *VehicleModelInfo) DoesExtraExist(extraId uint8) bool
type VehicleModelType ¶
type VehicleModelType = uint8
const ( VehicleInvalid VehicleModelType = iota VehiclePed VehicleAutomobile VehiclePlane VehicleTrailer VehicleQuadBike VehicleSubmarineCar VehicleAmphibiousAutomobile VehicleAmphibiousQuadBike VehicleHeli VehicleBlimp VehicleAutogyro VehicleBike VehicleBMX VehicleBoat VehicleTrain VehicleSubmarine VehicleObject )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.