This file contains hidden or 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
local script = "Better members" | |
local author = "gsmj" | |
local version = "v1.0.0" | |
script_name(script) | |
script_author(author) | |
script_version(version) | |
require ("lib.moonloader") | |
local sampev = require("lib.samp.events") |
This file contains hidden or 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, field | |
from typing import Callable | |
from pysamp import ( | |
cancel_select_text_draw, | |
get_tick_count, | |
select_text_draw, | |
) | |
from pysamp.textdraw import TextDraw | |
from pysamp.player import Player |
This file contains hidden or 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 pysamp.player import Player as BasePlayer | |
class Player(BasePlayer): | |
registry: dict[int, BasePlayer] = {} | |
def __init__(self, player_id: int): | |
super().__init__(player_id) | |
@classmethod | |
def from_registry_native(cls, player: BasePlayer | int) -> "Player": |
This file contains hidden or 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 enum import Enum, auto | |
from typing import Optional | |
from pysamp.player import Player | |
from pysamp.vehicle import Vehicle | |
EXCLUDED_MAP_AREA_COUNT: int = 9 | |
MAX_MAP_AREAS: int = 13 |
This file contains hidden or 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 pysamp import apply_animation | |
animation_list: list[str] = [ | |
"AIRPORT", "ATTRACTORS", "BAR", "BASEBALL", "BD_FIRE", | |
"BEACH", "BENCHPRESS", "BF_INJECTION", "BIKE_DBZ", "BIKED", | |
"BIKEH", "BIKELEAP", "BIKES", "BIKEV", "BLOWJOBZ", | |
"BMX", "BOMBER", "BOX", "BSKTBALL", "BUDDY", | |
"BUS", "CAMERA", "CAR", "CAR_CHAT", "CARRY", | |
"CASINO", "CHAINSAW", "CHOPPA", "CLOTHES", "COACH", | |
"COLT45", "COP_AMBIENT", "COP_DVBYZ", "CRACK", "CRIB", |