This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dataclasses import dataclass | |
component_type_names = [ | |
'Spoiler', | |
'Hood', | |
'Roof', | |
'Sideskirt', | |
'Lamps', | |
'Nitro', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dataclasses import dataclass | |
from typing import Dict, List | |
from .component_data import Component, components | |
@dataclass | |
class Vehicle: | |
id: int | |
name: str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import functools | |
from dataclasses import dataclass, field | |
from typing import Any, Callable, Protocol | |
from samp import SendClientMessage # type: ignore | |
class CommandHandler(Protocol): | |
def __call__(self, playerid: int, *args: str) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
RUN \ | |
apt-get update && \ | |
apt-get install -y \ | |
gpg \ | |
wget \ | |
&& \ | |
wget -O- https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | \ | |
gpg --dearmor - | \ | |
tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from dataclasses import dataclass, field | |
from typing import ClassVar, Dict, List, Optional, Tuple | |
from samp import ( | |
PLAYER_STATE_DRIVER, | |
PLAYER_STATE_ONFOOT, | |
AddVehicleComponent, | |
CallRemoteFunction, | |
ChangeVehicleColor, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import importlib | |
import traceback | |
from samp import SendClientMessage | |
from .cmdparser import cmd, handle_command | |
from .callbacks import names | |
from .tms import admin_level | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dataclasses import dataclass | |
from typing import Optional, Tuple | |
from samp import ( | |
KEY_CROUCH, | |
GetPlayerFacingAngle, | |
GetPlayerPos, | |
IsPlayerInAnyVehicle, | |
KillTimer, | |
SendClientMessage, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import functools | |
from dataclasses import dataclass | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.properties import ( | |
BooleanProperty, | |
ColorProperty, | |
ListProperty, | |
StringProperty, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cython: language_level=3, boundscheck=False, wraparound=False, cdivision=True | |
cimport cython | |
from libc.string cimport strncmp, strncpy | |
from bus cimport Bus | |
from cpu_instructions cimport cpu_function_from_name | |
cdef class CPU: | |
def __cinit__(self, Bus bus): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
from dataclasses import dataclass | |
from typing import Dict, Tuple | |
from samp import ( | |
DIALOG_STYLE_LIST, | |
CreateObject, | |
DestroyObject, | |
GetPlayerPos, | |
IsObjectMoving, |