_HAS_BUTTON_COMBINATION_JUST_BEEN_ENTERED
Docslocal retval = HasButtonCombinationJustBeenEntered(hash, amount)Description
This native appears on the cheat_controller script and tracks a combination of buttons, which may be used to toggle cheats in-game. Credits to ThreeSocks for the info. The hash contains the combination, while the "amount" represents the amount of buttons used in a combination. The following page can be used to make a button combination: gta5offset.com/ts/hash/
INT_SCORES_SCORTED was a hash collision
Parameters
| Name | Type | Description |
|---|---|---|
hash | Hash | — |
amount | int | — |
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).