daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Dec 18th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local plate = vehicleProps["owner"]
  2.  
  3.     local isFound = false
  4.  
  5.     RetrievePlayerVehicles(xPlayer.identifier, function(ownedVehicles)
  6.  
  7.         for id, v in pairs(ownedVehicles) do
  8.  
  9.             if Trim(plate) == Trim(v.plate) and #Config.VehiclePositions ~= VehiclesForSale then
  10.                
  11.                 MySQL.Async.execute("INSERT INTO vehicles_for_sale (seller, vehicleProps, price) VALUES (@sellerIdentifier, @vehProps, @vehPrice)",
  12.                     {
  13.                         ["@sellerIdentifier"] = xPlayer["identifier"],
  14.                         ["@vehProps"] = json.encode(vehicleProps),
  15.                         ["@vehPrice"] = price
  16.                     }
  17.                 )
  18.  
  19.                 MySQL.Async.execute('DELETE FROM owned_vehicles WHERE owner = @owner', { ["@owner"] = plate})
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top