_HAS_CHEAT_STRING_JUST_BEEN_ENTERED
Docslocal retval = HasCheatStringJustBeenEntered(hash)Description
Get inputted "Cheat code", for example:
while (TRUE)
{
if (MISC::_557E43C447E700A8(${fugitive}))
{
// Do something.
}
SYSTEM::WAIT(0);
}
Calling this will also set the last saved string hash to zero.Parameters
| Name | Type | Description |
|---|---|---|
hash | Hash | — |
Quick Snippet: Load Model Hashhash
hashModels must be loaded before use. This snippet handles requesting and releasing properly.
-- Properly load a model before spawning/using it
local modelName = "prop_barrel_01a" -- change to your model
local modelHash = GetHashKey(modelName)
RequestModel(modelHash)
while not HasModelLoaded(modelHash) do
Wait(0)
end
print("Model loaded: " .. modelName .. " (" .. modelHash .. ")")
-- Release when done:
-- SetModelAsNoLongerNeeded(modelHash)Returns
BOOLReturns TRUE (1) or FALSE (0).