[ESX]Log Money Transfers [Tutorial]

sorry for my bad English and the code that will happen to them is in Spanish anyway I hope it helps them,

I managed to make it recognize or work and here I share this, since originally it was not my idea, I hope it works for them and they give it good use.

1. install this.


2

CREATE TABLE IF NOT EXISTS `transferir_vehiculo` (
  `Envia` varchar(50) DEFAULT NULL,
  `Placa` varchar(50) DEFAULT NULL,
  `Recibe` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Vehicle Transfer Information';

3
find in esx_vehicleshop/server/main.lua

else
print("Did not transfer") 

and above that he writes/paste this.

            MySQL.Async.execute('INSERT INTO transferir_vehiculo (Envia, Placa, Recibe)VALUES (@Envia, @Placa, @Recibe) ',
	{
		['@Envia']   = myName,
		['@Placa']   = plate,
		['@Recibe']    = targetSteamName

	}
)
	

with this should be, restart server and you should have it working: D

image

1 Like