Exports
coachHint is based on exports. Here are all of them.
ShowHint - Used to display simple Hint
-- title: string
-- description: string
-- color: string
exports['coachHint']:ShowHint(title, description, color)
-- EXAMPLE
exports['coachHint']:ShowHint('Delivery Job', 'Go to Los Santos Airport to pickup delivery package', 'red')ShowHintCoords - Used to display Hint that shows distance to coords
-- title: string
-- description: string
-- coords: vector3
-- distance: float
-- autoClose: boolean
-- color: string
-- returns: 'y' or 'c' | 'y' when player reached destination coords (playerCoords - coords < distance) | 'c' when Hint was closed
local result = exports['coachHint']:ShowHintCoords(title, description, coords, distance, autoClose, color)
-- EXAMPLE
local result = exports['coachHint']:ShowHintCoords('Taxi Job', 'Pickup client from Groove Street', vector3(157.05, 670.72, 49.50), 4.0, true, 'green')
if result == 'y' then
print('you reached your destination')
elseif result == 'c' then
print('you cancelled your task')
endShowHintWithPoints - Used to display Hint with points for example: 0/15
HideHint - Used to close current Hint
IsHintVisible - Used to check if Hint is currently visible on screen
GetHintPoints - Used to get current Hint points progress
GetHintMaxPoints - Used to get maximum Hint points
GetHintDistance - Used to get current player distance to Hint destination coords
ChangeHintTitle - Used to change current Hint title
ChangeHintDescription - Used to change current Hint description
ChangeHintColor - Used to change Hint color
UpdateHintPoints - Used to set new Hint points
AddHintPoints - Used to add points to Hint points
Last updated