speed playAnim up + add default input message

This commit is contained in:
Jim Shield
2024-01-21 00:25:42 +00:00
committed by GitHub
parent 0caea0b473
commit fe27a1ca1c
3 changed files with 3 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ function pairsByKeys(t) local a = {} for n in pairs(t) do a[#a+1] = n end table.
function playAnim(animDict, animName, duration, flag, ped)
loadAnimDict(animDict)
TaskPlayAnim(ped and ped or PlayerPedId(), animDict, animName, 1.0, -1.0, duration or 30000, flag or 50, 1, false, false, false)
TaskPlayAnim(ped and ped or PlayerPedId(), animDict, animName, 8.0, -8.0, duration or 30000, flag or 50, 1, false, false, false)
end
function stopAnim(animDict, animName)

View File

@@ -1 +1 @@
1.0.4
1.0.3

View File

@@ -767,6 +767,7 @@ function createInput(title, opts)
options[i] = {
type = "input",
label = opts[i].text ..(opts[i].txt and " - "..opts[i].txt or ""),
default = opts[i].default,
isRequired = opts[i].isRequired,
}
end