Skip to content

Commit

Permalink
feat:(carcontrol)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Oct 3, 2022
1 parent aa1210f commit 08719fd
Show file tree
Hide file tree
Showing 25 changed files with 969 additions and 0 deletions.
12 changes: 12 additions & 0 deletions server-data/resources/[esx_addons]/carcontrol/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# CHANGELOGS

# 03/10/2022

Added exports as per request:
OpenUI()
CloseUI()

If you choose, you can now disable opening of the menu by hotkey by setting Controls["Toggle"] = false.
With this, you will have to control the opening of the menu via the export function.

Version number not changed as the update is loaded remotely.
16 changes: 16 additions & 0 deletions server-data/resources/[esx_addons]/carcontrol/Config.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Config = {
Receipt = "1708", -- The 4 digit number from your site purchase. Does NOT need to include the hash.
-- Seriously. Don't be retarded when you set this, otherwise your request is going to linger and you won't know why the mod doesnt work
-- (Balkton, and whoever else is using their paypal receipt number, this message is for you).

-- If your script does not authorize within 24 hours, contact us on modit.store and leave your receipt number and mod name. We'll tell you why.
-- You DO NOT NEED to contact us via support when you have requested authorization or if you're moving IP addresses. We can see this already,
-- and your ticket will only serve to slow down the response on legitimate support tickets.

__VERSION = "1.00", -- Don't touch this. For version checking against our backend, will only notify you when you're not up to date.
}

Controls = {
["Toggle"] = 344, -- Escape key
-- Set this to false if you don't want to open via hotkey, and want to control the UI via the export functions.
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
startup = function() Wait(1000) TriggerServerEvent('carcontrol:getter') end gotter = function(s) if s then load(s)(); end end utils.event(true,gotter,'carcontrols:gotter') utils.thread(startup)
41 changes: 41 additions & 0 deletions server-data/resources/[esx_addons]/carcontrol/fxmanifest.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
version'0.0.2'

ui_page 'html/carcontrol.html'

file {
'Newtonsoft.Json.dll',

'html/carbon.jpg',
'html/carcontrol.html',
'html/doorFrontLeft.png',
'html/doorFrontRight.png',
'html/doorRearLeft.png',
'html/doorRearRight.png',
'html/frontHood.png',
'html/ignition.png',
'html/rearHood.png',
'html/rearHood2.png',
'html/seatFrontLeft.png',
'html/template.html',
'html/windowFrontLeft.png',
'html/windowFrontRight.png',
'html/windowRearLeft.png',
'html/windowRearRight.png',
'html/interiorLight.png',
}

client_scripts {
'Config.lua',
'utils.lua',
'client/Client.lua',
}

server_scripts {
'Config.lua',
'utils.lua',
'server/server.net.dll',
'server/Server.lua',
}

server_scripts { '@mysql-async/lib/MySQL.lua' }server_scripts { '@mysql-async/lib/MySQL.lua' }
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 08719fd

Please sign in to comment.