Skip to content

Commit

Permalink
fix( es_extended/server/onesync) Fix broken vehicleProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFantomas authored Feb 19, 2023
1 parent 34c512c commit d318377
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions [core]/es_extended/server/onesync.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ function ESX.OneSync.SpawnVehicle(model, coords, heading, properties, cb)
end

local networkId = NetworkGetNetworkIdFromEntity(createdVehicle)
vehicleProperties.NetId = networkId
Entity(createdVehicle).state:set('VehicleProperties', vehicleProperties, true)
cb(networkId)
else
Expand Down

0 comments on commit d318377

Please sign in to comment.