Skip to content

Instantly share code, notes, and snippets.

@UmGeek
UmGeek / Moon Vehicle Parking.lua
Last active March 1, 2018 12:58
Lua script para GTA San Andreas - Moonloader, Crie veiculos estacionados facilmente usando o cheat MPKM.
script_name('Estacionador de veiculos')
script_author('GEEK')
script_description('Cria veiculos estacionados com base em um arquivo dat')
local VEHICLE_TABLE = {}
local DATA_FILE = 'Vehicle Parking.dat'
local scriptReloaded = false
function onLoadGame(saveData) scriptReloaded = true end
@UmGeek
UmGeek / NewOpcodes.xml
Last active September 27, 2018 21:46
NewOpcodes GTA3SCRIPT Part
<!-- Junior_Djjr -->
<Command ID="0xD00" Name="MULTIPLY_MATRIX">
<Args>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="INT" Out="true" Desc="Matrix"/>
</Args>
</Command>
<Command ID="0xD01" Name="ROTATE_MATRIX">
<Args>
@UmGeek
UmGeek / load modloader lua's.lua
Last active April 22, 2018 22:35
Carregar lua scripts da pasta do modloader
script_author("um_geek")
function main()
local path = getGameDirectory()
local modloader_path = path.."\\modloader"
local luas = {}
if doesDirectoryExist(modloader_path) then
local handle = io.popen('dir "'..modloader_path..'\\*.lua" /b /s /A-D',"r")
while true do
@UmGeek
UmGeek / playAnim.lua
Created May 10, 2018 15:17
Script para moonloader, GTA San Andreas, play anim simples.
script_name("animspray")
local IFP = "spraycan"
local ANIMATION = "spraycan_full"
function main()
repeat
if wasKeyPressed(0x50) then -- tecla P
if not hasAnimationLoaded(IFP) then
requestAnimation(IFP)
@UmGeek
UmGeek / Simple PlayAnim.sc
Last active May 10, 2018 17:52
GTA San Andreas, Simple PlayAnime Cleo
SCRIPT_START
{
NOP
WAIT 500
LVAR_INT scplayer command_key
LVAR_TEXT_LABEL IFP
// Um Geek
SCRIPT_START
{
NOP
LVAR_INT hPed hCar teleport
LVAR_FLOAT max min x y z
IF NOT READ_INT_FROM_INI_FILE "cleo\Sa-In-Sphere (Um-Geek).ini" "Settings" "Disable Mod" teleport
teleport = 0
SCRIPT_START
{
NOP
WAIT 100
LVAR_FLOAT upX upY upZ upA dwX dwY dwZ dwA posX posY posZ fixZ anmpos anm_speed
LVAR_INT counter pcoords scan scplayer anm_pause timer1 timer2 disable
CONST_INT LADDERS 15
@UmGeek
UmGeek / salvar-dano.lua
Last active July 2, 2018 16:30
GTA SA Script para Moonloader. Salvar danos do veiculo.
script_author("Um_Geek");
script_url("https://gta-geek.blogspot.com.br/");
script_version_number(0.0);
local ffi = require "ffi";
local memory = require "memory";
local gsx = nil;
local gsxCbRef = -1;
local gsxStrData = "cardam";
@UmGeek
UmGeek / helmet-weapon.sc
Created July 2, 2018 19:20
GTA SA, Cleo/gta3script: Usar capacete como arma
SCRIPT_START
{
NOP
LVAR_INT scplayer weaponid int1 int2 alfa using command
LVAR_FLOAT float1 float2 res_x res_y
LVAR_TEXT_LABEL helmet_type
GOSUB LOAD_INI_SETTINGS ()
SCRIPT_START
{
NOP
WAIT 2000
LVAR_INT scplayer dialog_1_status hPed[4] int_a int_b int_c dialog_no ini_npcs_models ini_language ini_pages
LVAR_FLOAT x y z axis_z axis_x alt_z alt_x screenX screenY resX resY
LVAR_TEXT_LABEL string_a