Created
April 25, 2020 07:44
-
-
Save JuniorDjjr/d69af2ef3d12e265e4f7d23e02a530ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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