Skip to content

Instantly share code, notes, and snippets.

using AltV.Net;
namespace Server.Roleplay.Models;
public class RpcAnswer : IWritable
{
private readonly IWritable? data;
private LinkedList<ValidationError>? errors;
private RpcAnswer(IWritable? data)
@duydang2311
duydang2311 / worldDocument.ts
Last active October 13, 2022 14:13
[alt:V] RmlUi document class for drawing 3D texts
import * as alt from 'alt-client';
export interface WorldElementData {
pos: () => alt.Vector3;
text: () => string;
losCheck?: () => boolean;
rangeSquared?: number;
}
export interface WorldDocumentConfig {
@duydang2311
duydang2311 / Microsoft.PowerShell_profile.ps1
Created August 6, 2022 08:37
Headline ZSH theme ported to powershell (posh-git)
Import-Module posh-git
function prompt
{
$width = $Host.UI.RawUI.BufferSize.Width
$ESC = [char]27
$fg = "$ESC[35m"
$username = $env:username
$width -= $username.Length
@duydang2311
duydang2311 / index.d.ts
Last active April 11, 2022 03:45
[TS] Enums of CSS colors.
declare const enum Color {
AliceBlue = '#f0f8ff',
AntiqueWhite = '#faebd7',
Aqua = '#00ffff',
AquaMarine = '#7fffd4',
Azure = '#f0ffff',
Beige = '#f5f5dc',
Bisque = '#ffe4c4',
Black = '#000000',
BlanchedAlmond = '#ffebcd',