Skip to content

Instantly share code, notes, and snippets.

View user-grinch's full-sized avatar

Grinch_ user-grinch

View GitHub Profile
cmake_minimum_required(VERSION 3.0.0)
project(Testing VERSION 0.1.0)
# definations
add_compile_definitions(
_NDEBUG
_CRT_SECURE_NO_WARNINGS
_CRT_NON_CONFORMING_SWPRINTFS
GTASA
GTAGAME_NAME="San Andreas"
/*
RC Vehicle script
Author: Grinch_
*/
SCRIPT_START
{
SCRIPT_NAME RC_FTW
/////////////////////////////////////////////////////////////
// CONSTS
// by Junior_Djjr - MixMods.com.br
// You need: https://forum.mixmods.com.br/f141-gta3script-cleo/t5206-como-criar-scripts-com-cleoplus
SCRIPT_START
{
LVAR_INT scplayer iCurLocal iNewLocal iCarrecIndex pString i bShowedMoneyInfo hPlane
LVAR_FLOAT x y z a x2 y2 sizeX sizeY planeX planeY planeZ
CONST_INT LOCAL_LS 0
CONST_INT LOCAL_SF 1
CONST_INT LOCAL_LV 2
#include <Windows.h>
#include <stdio.h>
void(*LoadObjectData)(const char*) = (void(*)(const char*))0x5B5360;
void Thread(void *param)
{
Sleep(3000);
HMODULE hModule = GetModuleHandle(NULL);
#define TRAM_MODEL 449
#define DRIVER_MODEL 253
#define DISTANCE_RANGE 10
#define TRAM_WAIT_TIME 10000 // 10 seconds
#define DEBUG_STUFF
#ifdef DEBUG_STUFF// Only add in debug build
#include <fstream>
#include "CSprite.h"
SCRIPT_START
{
/*
Functional Clock
Author: Grinch_
*/
SCRIPT_NAME FCLOCK
CONST_INT hour_tick_model 14730
CONST_INT min_tick_model 14729
import PySimpleGUI as sg
import struct, re, sys, webbrowser
###############################################
sg.theme('Material 2')
sg.theme_input_background_color("White")
sg.theme_input_text_color("Black")
sg.theme_text_color("Black")
###############################################
# Format
#include "plugin.h"
#include <iostream>
using namespace plugin;
struct Mouse
{
unsigned int x, y;
unsigned int wheelDelta;
char k1, k2, k3, k4, k5;
import dearpygui.dearpygui as dpg
from scipy.spatial.transform import Rotation
###############################################
# Constants
VIEWPORT_HEIGHT :int = 500
VIEWPORT_WIDTH :int = 900
VIEWPORT_TITLE :str = "IPL 2 PAWN"
INPUT_TEXT : str = ""
OUTPUT_TEXT : str = ""
SCRIPT_START
{
NOP
LVAR_INT sc_player , sc_car , door,sc_char ,car_stay , blip,should_break
LVAR_FLOAT x, y ,z , distance,car_x car_y car_z,speed
car_stay = 0
should_break = 0
speed = 20.0
GET_PLAYER_CHAR 0 sc_player