This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--[[ | ||
|| ____ ____ ___ | ||
|| / __ \____ _______________ ____ ____ _____ / __ )/ (_)___ _____ | ||
|| / /_/ / __ `/ ___/ ___/ __ \/ __ \/ __ \/ ___/ / __ / / / __ \/ ___/ | ||
|| / _, _/ /_/ / /__/ /__/ /_/ / /_/ / / / (__ ) / /_/ / / / /_/ (__ ) | ||
|| /_/ |_|\__,_/\___/\___/\____/\____/_/ /_/____/ /_____/_/_/ .___/____/ | ||
|| /_/ | ||
|| Created by TheRaccoon#1023 | ||
]] | ||
|
||
local blips = { | ||
-- Los Santos | ||
{title="Premium Deluxe Motorsports", colour=0, id=523, x=-42.7, y=-1093.2, z=27.27}, -- Premium Deluxe Motorsports | ||
{title="LtD", colour=0, id=59, x=-51.77, y=-1755.6, z=29.42}, -- Grove St LtD Station | ||
{title="Hair Salon", colour=0, id=71, x=-821.79, y=-187.17, z=37.57}, -- Rockford Hills Hair Salon | ||
{title="Ponsonbys", colour=0, id=73, x=-715.44, y=-155.87, z=37.42}, -- Rockford Hills Ponsonbys | ||
} | ||
|
||
Citizen.CreateThread(function() | ||
|
||
for _, info in pairs(blips) do | ||
info.blip = AddBlipForCoord(info.x, info.y, info.z) | ||
SetBlipSprite(info.blip, info.id) | ||
SetBlipDisplay(info.blip, 4) | ||
SetBlipScale(info.blip, 0.9) | ||
SetBlipColour(info.blip, info.colour) | ||
SetBlipAsShortRange(info.blip, true) | ||
BeginTextCommandSetBlipName("STRING") | ||
AddTextComponentString(info.title) | ||
EndTextCommandSetBlipName(info.blip) | ||
end | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--[[ | ||
|| ____ ____ ___ | ||
|| / __ \____ _______________ ____ ____ _____ / __ )/ (_)___ _____ | ||
|| / /_/ / __ `/ ___/ ___/ __ \/ __ \/ __ \/ ___/ / __ / / / __ \/ ___/ | ||
|| / _, _/ /_/ / /__/ /__/ /_/ / /_/ / / / (__ ) / /_/ / / / /_/ (__ ) | ||
|| /_/ |_|\__,_/\___/\___/\____/\____/_/ /_/____/ /_____/_/_/ .___/____/ | ||
|| /_/ | ||
|| Created by TheRaccoon#0001 | ||
]] | ||
|
||
fx_version "cerulean" | ||
games { 'gta5' } | ||
|
||
name "Raccoons-Blips" | ||
author "TheRaccoon#0001" | ||
description "Created by TheRaccoon, to help make creating blips easier than ever!" | ||
version "v1.0.3" | ||
|
||
client_scripts "client/blips.lua" | ||
server_script "server/verion_check.lua" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
print("TheRaccoon\'s Blips has loaded.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
local label = | ||
[[ | ||
// | ||
|| ____ ____ ___ | ||
|| / __ \____ _______________ ____ ____ _____ / __ )/ (_)___ _____ | ||
|| / /_/ / __ `/ ___/ ___/ __ \/ __ \/ __ \/ ___/ / __ / / / __ \/ ___/ | ||
|| / _, _/ /_/ / /__/ /__/ /_/ / /_/ / / / (__ ) / /_/ / / / /_/ (__ ) | ||
|| /_/ |_|\__,_/\___/\___/\____/\____/_/ /_/____/ /_____/_/_/ .___/____/ | ||
|| /_/ | ||
|| Created by TheRaccoon#0001 | ||
||]] | ||
Citizen.CreateThread(function() | ||
local CurrentVersion = GetResourceMetadata(GetCurrentResourceName(), 'version', 0) | ||
if not CurrentVersion then | ||
print('^1Raccoons-Blips Version Check Failed!^7') | ||
end | ||
|
||
function VersionCheckHTTPRequest() | ||
PerformHttpRequest('https://raw.githubusercontent.com/PeEcEeChIP/version-history/version/raccoons-blips.json', VersionCheck, 'GET') | ||
end | ||
|
||
function VersionCheck(err, response, headers) | ||
Citizen.Wait(3000) | ||
if err == 200 then | ||
local Data = json.decode(response) | ||
if CurrentVersion ~= Data.NewestVersion then | ||
print( label ) | ||
print(' || \n || Raccoons-Blips is outdated!') | ||
print(' || Current version: ^2' .. Data.NewestVersion .. '^7') | ||
print(' || Your version: ^1' .. CurrentVersion .. '^7') | ||
print(' || Please download the lastest version from ^5' .. Data.DownloadLocation .. '^7') | ||
if Data.Changes ~= '' then | ||
print(' || \n || ^5Changes: ^7' .. Data.Changes .. "\n^0 \\\\\n") | ||
end | ||
else | ||
print( label ) | ||
print(' || ^2Raccoons-Blips is up to date!\n^0 ||\n \\\\\n') | ||
end | ||
else | ||
print( label ) | ||
print(' || ^1There was an error getting the latest version information, if the issue persists contact TheRaccoon#0001 on Discord.\n^0 ||\n \\\\\n') | ||
end | ||
|
||
SetTimeout(60000000, VersionCheckHTTPRequest) | ||
end | ||
|
||
VersionCheckHTTPRequest() | ||
end) |