Skip to content

Instantly share code, notes, and snippets.

View JuniorDjjr's full-sized avatar

Valdir da Costa Júnior JuniorDjjr

View GitHub Profile
/*
CLEO script for GTA:SA wrote in GTA3script language (0.2.0)
Description: Removes dealer help box by hacking his external script changing 88FE: opcode ("NOT IS_HELP_MESSAGE_BEING_DISPLAYED")
into 0485: ("IS_PC_VERSION") (also called as "return_true" by modders)
*/
{
NOP
/*
You need: https://forum.mixmods.com.br/f16-utilidades/t179-gta3script-while-true-return_true-e-return_false
TODO: Add also for hot dogs and vending machines?
*/
SCRIPT_START
{
LVAR_INT scplayer
LVAR_INT hObject ryder
LVAR_INT iModelBurger iModelChicken iModelPizza iModelDonut iModelHotDog
LVAR_FLOAT fProgress
// By Junior_Djjr - MixMods.com.br
// You need: https://forum.mixmods.com.br/f16-utilidades/t179-gta3script-while-true-return_true-e-return_false
SCRIPT_START
{
LVAR_INT i j playerId mode ignoredLastFrame[2] noWantedLastFrame maxWantedBackup playerWithUniform[2] numPlayersUsing dontEnableFor2players maxWantedLevelBeforeEnterInterior iSaved iOnGarage scplayer p alwaysEnabled
LVAR_FLOAT x y z r ro
GET_PLAYER_CHAR 0 scplayer
iSaved = -1
SCRIPT_START
{
LVAR_INT scplayer
LVAR_INT veh char
LVAR_INT veh_model veh_class cped pedtype createdby
LVAR_FLOAT x y z
GET_PLAYER_CHAR 0 scplayer
SCRIPT_START
{
LVAR_INT scplayer bUsingCompressor hCompressorObject iLanguage iKey bInfos iModel
LVAR_FLOAT x y z x2 y2 z2
CONST_INT LANG_PT 1
CONST_INT LANG_EN 2
GET_PLAYER_CHAR 0 scplayer
IF READ_INT_FROM_INI_FILE "cleo\compressor.ini" "Settings" "lang" iLanguage
/*
Map Mod Mover
http://www.mixmods.com.br/2017/05/programa-map-mod-mover-mudar-posicao-mapas.html
*/
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <string>
#include <Windows.h>
SCRIPT_START
{
LVAR_INT scplayer
LVAR_INT hAudiostream bIsAudioPlaying
LVAR_FLOAT fLastExplosion_X fLastExplosion_Y fLastExplosion_Z
LVAR_FLOAT fLast_fLastExplosion_X fLast_fLastExplosion_Y fLast_fLastExplosion_Z
LVAR_FLOAT fPlayer_X fPlayer_Y fPlayer_Z
LVAR_FLOAT fDistance fMinDistance fDivDistance fVolume fNewVolume fTempVolume fSetVolume fIniVolume
LVAR_FLOAT fSfxVolume fRadioVolume fDefaultSfxVolume fDefaultRadioVolume
SCRIPT_START
{
LVAR_INT scplayer
LVAR_INT char n pedtype
GET_PLAYER_CHAR 0 (scplayer)
main_loop:
WAIT 0
SCRIPT_START
{
LVAR_INT scplayer hPed
LVAR_INT pBASS pBASS_RecordStart pBASS_ChannelGetLevel pBASS_RecordInit pBASS_SetConfig pBASS_RecordFree pBASS_ErrorGetCode
LVAR_INT hRecord
LVAR_INT iLevel
LVAR_INT iResult iTemp bIsFirstTime
LVAR_INT iMinLevel iMouthUpdate bEnabled bDebugMode iLanguage
GET_PLAYER_CHAR 0 (scplayer)
// by Junior_Djjr - MixMods.com.br
// You need: https://forum.mixmods.com.br/f16-utilidades/t179-gta3script-while-true-return_true-e-return_false
SCRIPT_START
{
LVAR_INT scplayer
LVAR_INT iChance iChanceLight iCurrentWeatherID iUpcomingWeatherID iDay iLastDay iMonth iLastMonth iLightRainTimeLimit i j
LVAR_FLOAT fLightRainIntensity fCurRain
GET_PLAYER_CHAR 0 (scplayer)