Oskr
July 7, 2017, 3:02am
1
Hi guys,
Today, i’m sharing my tow system with any features
Requires:
EssentialMode
VDK_Call (optionnaly)
Model Menu (optionnaly)
Jobs-Systems
Banking
Download:
Installation:
PLEASE READ ALL CODE BEFORE YOU PUT IT AND SAY HE DOESN’T WORK !
Add ‘sql.sql’ to your database
Check “client.lua” for settings
Check “server.lua” for settings
Put the folder in your ressource !
Do not forget to add “- depanneur” in your “citmp-server.yml”
IN BANKING SERVER.LUA, ADD:
RegisterServerEvent('bank:withdrawFactureDep')
AddEventHandler('bank:withdrawFactureDep', function(amount)
TriggerEvent('es:getPlayerFromId', source, function(user)
local player = user.identifier
local bankbalance = bankBalance(player)
withdraw(player, amount)
local new_balance = bankBalance(player)
TriggerClientEvent("es_freeroam:notify", source, "CHAR_BANK_MAZE", 1, "Mystic Bank", false, "FACTURE DEPANNEUR - Nouveau Solde: ~g~$" .. new_balance)
TriggerClientEvent("banking:updateBalance", source, new_balance)
TriggerClientEvent("banking:removeBalance", source, amount)
CancelEvent()
end)
end)
Features:
Take Service
Service Menu
Billing System
Sell Vehicles
Call System (With vdk_call)
Service Car with bail
Chest system (Money/Dirty Money/Laundering)
Next Version:
MySQL Async
Call System without Vdk_call
Blips only in service
Differents functions
Objets
Screenshots:
I do not make support !
My others Projects :
http://mysticrp.16mb.com/
All texts are french because i’m french baguette
(Some functions come from other scripts but I do not remember names,
If you see your code, tell me for credits !)
6 Likes
Thanks for script it’s very very good script
For when is the async version please ?
Thanks Oskarr
1 Like
Oskr
July 7, 2017, 11:27am
4
No sorry i don’t use CouchDB ^^ but if you translate it in couch db , you can send me private message for add it
server.lua (13.1 KB)
Converted the server.lua to mysql-async
Havn’t tested it but should work.
If it fails its because on line 65, 70, 76, 90, 95, you need to change ‘1’ to 1
1 Like
No problem! Need anymore PM me
1 Like
Very good translate 0 problems guy
1 Like
Has anyone translated the original to English ?
Ryload
July 7, 2017, 12:03pm
11
Thanks for the release ! Compatible with LaLife gamemode ?
Server.lua for source La_LifeRP https://pastebin.com/AG68qkxZ
2 Likes
But as you are not going to use CouchDB if the essentialmode and the es_admin is only with Couchdb? I would like to do it in Mysql / phpmyadmin, but do not write to me or read the database only works for me in CouchDB …
Thx for your share @Oskr and thx for your EDIT @WalterWhite
@WalterWhite do you have a version taxi script of Oskr for LaLife ?
thx guys
Look release script for link
1 Like
Oskr
July 7, 2017, 1:46pm
18
I’ve old essential mode (2.0) but the author don’t allow to share it , search on forum !
Oskr
July 7, 2017, 1:47pm
19
Please put the code in GitHub or Pastebin for others peoples can see it easy ^^ Thanks for translate
Having an issue on this and the newly released “taxi” where when someone tries to return the vehicle (tow truck or taxi cab) it will not return and gives the notifying message that I changed to “This is not a company truck”. No Error codes are popping up in console obviously as its giving the proper cannot store command, code looks good, any suggestions?
Edit: Solution Found: Leave License Plate Default.
Issue :
The notification “Vehicle selled for 3.000$” is a global notification.
All people in the server receive the notification.