Skip to content

Commit

Permalink
Merge pull request esx-framework#902 from esx-framework/TheFantomas-p…
Browse files Browse the repository at this point in the history
…atch-1

fix(es_extended/server/onesync) Fix broken vehicleProperties
  • Loading branch information
jbdevic authored Feb 19, 2023
2 parents 34c512c + d318377 commit 0e53b30
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 0e53b30

Please sign in to comment.