Skip to content

Instantly share code, notes, and snippets.

View AmyrAhmady's full-sized avatar
:shipit:
shipit shipit

iAmir AmyrAhmady

:shipit:
shipit shipit
View GitHub Profile
const Float:CuffObjectOffsets[][] =
{
{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // 0
{0.021000, 0.101998, -0.009999, -6.099919, -7.100001, 83.099945, 1.489999, 3.036000, 1.957998}, // 1
{0.021000, 0.049998, -0.009999, -6.099919, -7.100001, 83.099945, 0.989999, 3.036000, 1.957998}, // 2
{0.037000, 0.034998, -0.017999, -6.099919, -7.100001, 83.099945, 1.025999, 3.036000, 1.714998}, // 3
{0.045001, 0.115998, 0.008000, 3.100080, -6.900001, 71.299934, 1.556999, 2.976998, 1.732998}, // 4
{0.031001, 0.046998, 0.007000, 3.100080, -6.900001, 82.899940, 1.230999, 2.976998, 1.693999}, // 5
{0.031001, 0.039998, -0.003999, -6.199919, -6.900001, 82.899940, 0.986999, 2.976998, 1.383998}, // 6
{0.061001, 0.037999, -0.017999, -12.599921, 2.999991, 77.899871, 1.132000, 2.822998, 1.527998}, // 7

Date : 2020-07-07 13:00:44

Directory e:\react-native\digimaz\src

Total : 411 files, 34324 codes, 1562 comments, 4293 blanks, all 40179 lines

details

Languages

| language | files | code | comment | blank | total |

void __thiscall CNetGame::Packet_VehicleSync(stSAMP *this, int a2)
{
stSAMP *v2; // ebp
bool v3; // zf
_BYTE *v4; // edx
char v5; // al
char v6; // cl
struct stRemotePlayer *v7; // eax
stRemotePlayerData *v8; // eax
char a2a; // [esp+Ch] [ebp-174h]
____ _ _ _ ___ ___ __ ____
| _ \ (_) | | | |__ \ / _ \/_ |___ \
| |_) |_ _ _| | __| | ) | | | || | __) |
| _ <| | | | | |/ _` | / /| | | || ||__ <
| |_) | |_| | | | (_| | / /_| |_| || |___) |
|____/ \__,_|_|_|\__,_| |____|\___/ |_|____/
Developed by
Roy Nash
THIS CODE IS PROTECTED BY COPYRIGHT LAWS, DISTRIBUTION OR USAGE OF ANY
OF THE CODE WITHOUT THE WRITTEN PERMISSION OF ITS AUTHOR (Roy Nash) IS
stock IsVehicleUpgradeCompatible(model, componentid) // by AirKite
{
switch(model)
{
case 400:
{
switch(componentid)
{
case 1008: return true;
case 1009: return true;
@AmyrAhmady
AmyrAhmady / sidebars.js
Last active March 7, 2021 11:36
Docusaurus sidebar generator by name of directories and files!
const fs = require("fs");
const path = require('path');
const SIDE_BAR_NAME = 'Sidebar';
const CATEGORY_NAME_CAPITALIZATION = true;
function parseDir(filename) {
const stats = fs.lstatSync(filename);
const info = {}
SCRIPT_API(SendPlayerGameInitData,
bool(std::shared_ptr<PlayerScriptingData> player, bool zoneNames, bool playerPedAnims, bool interiorWeapons,
bool limitGlobalChatRadius, float globalChatRadius, bool stuntBonus,
float nameTagDrawDistance, bool disableInteriorEnterExits, bool disableNameTagLOS,
bool manualVehicleEngineAndLights, uint32_t spawnInfoCount, bool showNameTags,
bool showPlayerMarkers, uint8_t worldTime, uint8_t weather, float gravity,
bool lanMode, uint32_t deathDropAmount, bool instagib, uint32_t onFootRate,
uint32_t inCarRate, uint32_t weaponRate, uint32_t multiplier, uint32_t lagCompensation,
std::string const & serverName, bool vehicleFriendlyFire))
{
@AmyrAhmady
AmyrAhmady / qrcodesamp.js
Last active October 10, 2023 04:37
a simple js qr code for samp-node
import qrcode from "qrcode-generator";
async function generateQRCodeForSamp(context) {
let typeNumber = 4;
let errorCorrectionLevel = 'L';
let qr = qrcode(typeNumber, errorCorrectionLevel);
qr.addData(context);
qr.make();
let newQRCode = "";
import React from 'react';
import { View, Text, SafeAreaView } from 'react-native';
import BottomSheet from 'reanimated-bottom-sheet'
import { widthPercentageToDP as wp, heightPercentageToDP as hp } from 'react-native-responsive-screen';
export default class dummyPage extends React.Component {
constructor(props) {
super(props);
}
enum eWeaponType : unsigned int
{
WEAPON_UNARMED = 0x0,
WEAPON_BRASSKNUCKLE = 0x1,
WEAPON_GOLFCLUB = 0x2,
WEAPON_NIGHTSTICK = 0x3,
WEAPON_KNIFE = 0x4,
WEAPON_BASEBALLBAT = 0x5,
WEAPON_SHOVEL = 0x6,
WEAPON_POOLCUE = 0x7,