Skip to content

Commit

Permalink
feat: trigger server event on vehicle save (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manason authored Jul 8, 2024
1 parent b51418a commit 53e5605
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ local function saveVehicle(vehicle, options)

local query, placeholders = buildSaveVehicleQuery(vehicleId, options)
MySQL.update.await(query, placeholders)
TriggerEvent('qbx_vehicles:server:vehicleSaved', vehicleId)
return true
end

Expand Down

0 comments on commit 53e5605

Please sign in to comment.