Skip to content

Instantly share code, notes, and snippets.

Avatar

Valdir da Costa Júnior JuniorDjjr

View GitHub Profile
View NPC Tuning (Junior_Djjr).sc
// You need: https://forum.mixmods.com.br/f141-gta3script-cleo/t5206-como-criar-scripts-com-cleoplus
SCRIPT_START
{
LVAR_INT scplayer i j k iSeed iRandomLevel hVeh iType iWheelSet iSlot iTotalSlots pLabel iModel iVehModel bIsOffCity bUseFinalRandom bThisVehicleHasPartsInitialized iClass iFindProgress bOnRace
LVAR_INT iFullTuningFinalPercent iLevels[5] bDisableNitro
// Wheel sets
CONST_INT ANY_SET -1
CONST_INT WHEEL_SET_TF 0 // Transfender
CONST_INT WHEEL_SET_WAA 1 // Wheel Arch Angel
View Comet Roof Extra2 (Junior_Djjr).sc
// Requires CLEO+ and IndieVehicles
SCRIPT_START
{
LVAR_INT hVeh pVeh i
SET_SCRIPT_EVENT_CAR_CREATE ON OnCarCreate hVeh
WHILE TRUE
WAIT 0x7FFFFFFF
ENDWHILE
View Fall Bike Ped Reaction (Junior_Djjr).sc
// 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 hChar i playerId hSeqTask bResourcesLoaded
GET_PLAYER_CHAR 0 scplayer
WHILE TRUE
WAIT 0
View Ebisu Minami.sc
// By Junior_Djjr - MixMods.com.br
// You can edit it to your map mods, just keep clear credits to me.
// You need: https://forum.mixmods.com.br/f16-utilidades/t179-gta3script-while-true-return_true-e-return_false
SCRIPT_START
{
LVAR_INT scplayer hVeh
GET_PLAYER_CHAR 0 scplayer
// Faster testing
View Handshake (Junior_Djjr).sc
// by Junior_Djjr
// You need: https://forum.mixmods.com.br/f16-utilidades/t179-gta3script-while-true-return_true-e-return_false
SCRIPT_START
{
LVAR_INT scplayer playerId char taskChar i
LVAR_FLOAT f x y z x2 y2 z2
LVAR_TEXT_LABEL16 animName
playerId = 0
GET_PLAYER_CHAR playerId scplayer
View Stress Test (Junior_Djjr).sc
SCRIPT_START
{
LVAR_INT scplayer local rotateCam disableWanted
LVAR_FLOAT des_x des_y cur_x cur_y z dif_x dif_y distance speed camSpeed
GET_PLAYER_CHAR 0 scplayer
READ_INT_FROM_INI_FILE "cleo\Stress Test.ini" "Settings" "Local" (local)
READ_FLOAT_FROM_INI_FILE "cleo\Stress Test.ini" "Settings" "Speed" (speed)
speed *= -1.0
View Radar Map Color (Junior_Djjr).sc
// You need: https://forum.mixmods.com.br/f16-utilidades/t179-gta3script-while-true-return_true-e-return_false
SCRIPT_START
{
LVAR_INT i
LVAR_TEXT_LABEL16 reloadCommand
GOSUB ReadIni
WHILE TRUE
WAIT 0
View Planes Inertia (Junior_Djjr).sc
// You need: https://forum.mixmods.com.br/f16-utilidades/t179-gta3script-while-true-return_true-e-return_false
SCRIPT_START
{
LVAR_INT scplayer hVeh bCharInvalid bPlaneInvalid i
LVAR_FLOAT x y z planeX planeY planeZ
CONST_FLOAT AIR_RESISTENCE 0.04
CONST_FLOAT GRAVITY 0.17
CONST_FLOAT AIR_RESISTENCE_PLANE 0.00003
View Peds Buy Food (Junior_Djjr).sc
SCRIPT_START
{
LVAR_INT scplayer hChar pChar hObj hLastObject i hTasks iObjectModel bIsVend
LVAR_FLOAT x y z charX charY charZ objX objY objZ offset radius
GET_PLAYER_CHAR 0 scplayer
WHILE TRUE
WAIT 100
View Turret (Junior_Djjr).sc
// 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 iSeat iSide iVehModel iTotalSeats hChar hVeh iWeaponType iPassenger iKey1 iKey2 iLastModel pModelKey
LVAR_FLOAT f x y z fOffsetX fOffsetY fOffsetZ
GET_PLAYER_CHAR 0 scplayer
IF NOT READ_INT_FROM_INI_FILE "CLEO/Turret (Junior_Djjr).ini" "Settings" "Key1" (iKey1)