Skip to content

Commit

Permalink
chore: 🎨 Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Aug 6, 2024
1 parent 9d9aec5 commit 98433a5
Show file tree
Hide file tree
Showing 7 changed files with 251 additions and 251 deletions.
2 changes: 1 addition & 1 deletion server-data/resources/[bpt_addons]/bpt_farmer/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

<program> Copyright (C) 2022-2024 bitpredator
bpt_farmer Copyright (C) 2022-2024 bitpredator
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
Expand Down
20 changes: 10 additions & 10 deletions server-data/resources/[bpt_addons]/bpt_farmer/client/animated.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ local playerPed

RegisterNetEvent("farmer:freeze")
AddEventHandler("farmer:freeze", function()
playerPed = PlayerPedId()
ClearPedTasks(PlayerPedId())
FreezeEntityPosition(playerPed, true)
playerPed = PlayerPedId()
ClearPedTasks(PlayerPedId())
FreezeEntityPosition(playerPed, true)
end)

RegisterNetEvent("farmer:unfreeze")
AddEventHandler("farmer:freeze", function()
playerPed = PlayerPedId()
FreezeEntityPosition(playerPed, false)
ClearPedTasks(PlayerPedId())
playerPed = PlayerPedId()
FreezeEntityPosition(playerPed, false)
ClearPedTasks(PlayerPedId())
end)

RegisterNetEvent("farmer:anim")
AddEventHandler("farmer:anim", function()
local lib, anim = "amb@prop_human_bum_bin@idle_b", "idle_d"
ESX.Streaming.RequestAnimDict(lib, function()
TaskPlayAnim(PlayerPedId(), lib, anim, 1.0, -3.0, 5000, 0, 0, false, false, false)
end)
local lib, anim = "amb@prop_human_bum_bin@idle_b", "idle_d"
ESX.Streaming.RequestAnimDict(lib, function()
TaskPlayAnim(PlayerPedId(), lib, anim, 1.0, -3.0, 5000, 0, 0, false, false, false)
end)
end)
Loading

0 comments on commit 98433a5

Please sign in to comment.