fishing
This commit is contained in:
parent
7e2451be50
commit
176f249885
23 changed files with 1323 additions and 0 deletions
36
resources/[jobs]/[civ]/wasabi_fishing/client/functions.lua
Normal file
36
resources/[jobs]/[civ]/wasabi_fishing/client/functions.lua
Normal file
|
@ -0,0 +1,36 @@
|
|||
-----------------For support, scripts, and more----------------
|
||||
--------------- https://discord.gg/wasabiscripts -------------
|
||||
---------------------------------------------------------------
|
||||
|
||||
ShowHelp = function(msg)
|
||||
BeginTextCommandDisplayHelp('STRING')
|
||||
AddTextComponentSubstringPlayerName(msg)
|
||||
EndTextCommandDisplayHelp(0, false, true, -1)
|
||||
end
|
||||
|
||||
WaterCheck = function()
|
||||
local headPos = GetPedBoneCoords(cache.ped, 31086, 0.0, 0.0, 0.0)
|
||||
local offsetPos = GetOffsetFromEntityInWorldCoords(cache.ped, 0.0, 50.0, -25.0)
|
||||
local water, waterPos = TestProbeAgainstWater(headPos.x, headPos.y, headPos.z, offsetPos.x, offsetPos.y, offsetPos.z)
|
||||
return water, waterPos
|
||||
end
|
||||
|
||||
CreateBlip = function(coords, sprite, colour, text, scale)
|
||||
local blip = AddBlipForCoord(coords)
|
||||
SetBlipSprite(blip, sprite)
|
||||
SetBlipColour(blip, colour)
|
||||
SetBlipAsShortRange(blip, true)
|
||||
SetBlipScale(blip, scale)
|
||||
AddTextEntry(text, text)
|
||||
BeginTextCommandSetBlipName(text)
|
||||
EndTextCommandSetBlipName(blip)
|
||||
return blip
|
||||
end
|
||||
|
||||
TryFish = function(data)
|
||||
TriggerServerEvent('wasabi_fishing:tryFish', data)
|
||||
end
|
||||
|
||||
FishingSellItems = function()
|
||||
TriggerServerEvent('wasabi_fishing:sellFish')
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue