Skip to content

Instantly share code, notes, and snippets.

Avatar

Valdir da Costa Júnior JuniorDjjr

View GitHub Profile
View Torch Mod (Junior_Djjr).sc
SCRIPT_START
{
LVAR_INT scplayer
LVAR_FLOAT x y z
GET_PLAYER_CHAR 0 (scplayer)
WHILE TRUE
WAIT 0
View Random Car Talk (Junior_Djjr).sc
// You need: https://forum.mixmods.com.br/f141-gta3script-cleo/t5206-como-criar-scripts-com-cleoplus
SCRIPT_START
{
LVAR_INT scplayer hChar[3] hVeh iCurNumPassengers iMaxPassengers iNumGangMembers i j k iNextTimeToTalk iIdToSay hOtherChar iCfgRandMinTime iCfgRandMaxTime
WAIT 0
WAIT 0
IF IS_ON_SAMP
TERMINATE_THIS_CUSTOM_SCRIPT
View WeaponWheelSelector.cs
// Snippet by Junior_Djjr, originally for IMPUNES game. MIT license.
// This solution is better than GTA V when selecting diagonal slots on mouse. With only 10 lines of code.
// Only for wheel selector based on 8 slots, but you can easily change it.
// Mouse only for now
cursorPos.x += Input.GetAxis("Mouse X") * Time.unscaledDeltaTime * sensibility;
cursorPos.y += Input.GetAxis("Mouse Y") * Time.unscaledDeltaTime * sensibility;
float distFromCenter = cursorPos.magnitude;
View Air Brake Sound (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 hVeh pVeh i iSearchProgress hAudioStream
LVAR_FLOAT f fLastBrake fGas fBrake fBrakePressure fIniVolume x y z
WAIT 0
WAIT 0
View Ped Spawn Creator (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 pTempString // In
LVAR_INT pFileString iAreaID bSpawnOnMission i lPedList iPed pKeyString pPedSpawn iTotalPeds hChar bLazySpawn bLoadAnim iTestMode lCreatedPedsList bInPanic
LVAR_FLOAT f x y z spawnX spawnY spawnZ radius
LVAR_TEXT_LABEL16 tAnimIfp tAnim
CONST_INT PED_SPAWN_COORD_X 0
View Custom Vinewood Text (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 i hObject pText lModelsList bCreated
LVAR_FLOAT x y z originX originY originZ
WAIT 0
WAIT 0
View Manual Firing (Junior_Djjr).sc
// You need: https://forum.mixmods.com.br/f141-gta3script-cleo/t5206-como-criar-scripts-com-cleo
SCRIPT_START
{
LVAR_INT iPlayerId //In
LVAR_INT scplayer i iWeaponType iLastWeaponType pWeaponInfo bFireButtonOff iSave
LVAR_FLOAT fBackupStat69 fBackupStat70 f g
WAIT 0
WAIT 0
View Chainsaw Ammo Fuel (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 i j pPlayer bUsingChainsawLastFrame bGotChainsawLastFrame pWeaponInfo iSlot iChainsawAmmo hObject iModel bFoundObjectLastFrame bFoundObjectNow bShowAmmoOnScreen
LVAR_FLOAT fChainsawAmmo x y z
GET_PLAYER_CHAR 0 (scplayer)
GET_PED_POINTER scplayer (pPlayer)
View Prostitutes Money Drop Fix (Junior_Djjr).sc
// You need: https://forum.mixmods.com.br/f141-gta3script-cleo/t5206-como-criar-scripts-com-cleoplus
SCRIPT_START
{
LVAR_INT scplayer pPlayer pPlayerData pCurPro pLastPro hLastPro i iProMoney iStartPlayerMoney
GET_PLAYER_CHAR 0 (scplayer)
GET_PED_POINTER scplayer (pPlayer)
READ_STRUCT_OFFSET pPlayer 0x480 4 (pPlayerData)
View gtasa+.sc
// by Junior_Djjr - MixMods.com.br
SCRIPT_START
{
LVAR_INT scplayer i
// jump game init first frames
WAIT 0
WAIT 0
// wait new game cutscene using CLEO+