Here are some different things that MAY be helpful to you!
- Tables
local x, y, z = table.unpack(GetEntityCoords(PlayerPedId(), true))
- AddBlipForEntity (Found in the Native Reference)
- If statements
- Setting up a basic script
Hopefully, all of this will point you in the right direction! I didn’t want to give answers of course, but I’m more than happy to help with any bits you get stuck on!