Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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 iModel hObj bCreated
LVAR_FLOAT fScale x y z
GET_PLAYER_CHAR 0 scplayer
IF NOT READ_INT_FROM_INI_FILE "CLEO/Chroma Key.ini" "Settings" "ModelId" (iModel)
iModel = 7977
ENDIF
IF NOT READ_FLOAT_FROM_INI_FILE "CLEO/Chroma Key.ini" "Settings" "Scale" (fScale)
fScale = 1.0
ENDIF
WHILE TRUE
WAIT 0
IF TEST_CHEAT "CHROMAKEY"
IF bCreated = FALSE
GET_CHAR_COORDINATES scplayer x y z
z -= 6.5
REQUEST_MODEL iModel
LOAD_ALL_MODELS_NOW
CREATE_OBJECT iModel x y z (hObj)
MARK_MODEL_AS_NO_LONGER_NEEDED iModel
SET_OBJECT_SCALE hObj fScale
bCreated = TRUE
ELSE
DELETE_OBJECT hObj
bCreated = FALSE
ENDIF
ENDIF
ENDWHILE
}
SCRIPT_END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.