Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
RaccoonWX authored Feb 26, 2023
1 parent 52db611 commit 0f15117
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 0 deletions.
32 changes: 32 additions & 0 deletions client/blips.lua
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)
20 changes: 20 additions & 0 deletions fxmanifest.lua
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"
1 change: 1 addition & 0 deletions server/print.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("TheRaccoon\'s Blips has loaded.")
48 changes: 48 additions & 0 deletions server/version_check.lua
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)

0 comments on commit 0f15117

Please sign in to comment.