[Standalone] Floating Anims
Simple yet really helpful GTA money pickup style floating text with icons and animations.
Features
- Doesn’t require a framework, can be used via EXPORTS or TRIGGERS
- Lots of arguments for different customization options
Examples
RegisterCommand("test1", function(source, args, cmd)
local moneyAmount = math.random(-10000, 10000)
local coords = GetEntityCoords(PlayerPedId())
if(moneyAmount < 0)then
moneyAmount = tostring(moneyAmount):gsub("-", "")
local text = "-$"..moneyAmount
local txtRGBA = {r = 255, g = 0, b = 0, a = 255}
exports.fanim:createMoneyAnim(coords.x, coords.y, coords.z, text, 80, txtRGBA)
elseif(moneyAmount > 0)then
local text = "+$"..moneyAmount
local txtRGBA = {r = 0, g = 255, b = 0, a = 255}
exports.fanim:createMoneyAnim(coords.x, coords.y, coords.z, text, 80, txtRGBA)
end
end)
RegisterCommand("test2", function(source, args, cmd)
local coords = GetEntityCoords(PlayerPedId())
local iconRGBA = {r = 255, g = 255, b = 255, a = 255}
local txtRGBA = {r = 0, g = 255, b = 0, a = 255}
exports.fanim:createCustomFloatingAnim(coords.x, coords.y, coords.z, "+1 Combat Pistol", 150, "Mpweaponscommon", "w_pi_combatpistol", 50.0, 25.0, iconRGBA, txtRGBA)
Citizen.Wait(500)
exports.fanim:createCustomFloatingAnim(coords.x, coords.y, coords.z, "+1 Desert Eagle", 150, "Srange_weap", "weap_hg_4", 30.0, 25.0, iconRGBA, txtRGBA)
Citizen.Wait(500)
local txtRGBA = {r = 255, g = 0, b = 0, a = 255}
exports.fanim:createCustomFloatingAnim(coords.x, coords.y, coords.z, "-10 Stamina", 150, "Triathlon", "triathlon_running", 25.0, 25.0, iconRGBA, txtRGBA)
end)
RegisterCommand("test3", function(source, args, cmd)
local coords = {102.20320129395, -1953.4229736328, 20.642744064331}
local iconRGBA = {r = 0, g = 255, b = 0, a = 255}
local txtRGBA = {r = 255, g = 255, b = 255, a = 255}
exports.fanim:createCustomFloatingAnim(coords[1], coords[2], coords[3], "Liked!", 250, "mphud", "thumb_up_white", 20.0, 20.0, iconRGBA, txtRGBA)
end)
Requirements / Dependencies
- None, works with any framework and script!
Price: £1.99 + Taxes
This resource uses the Escrow system! | |
---|---|
Code is accessible | No |
Subscription-based | No |
Lines (approximately) | 250 |
Requirements | None |
Support | Yes |