Skip to content

Commit

Permalink
Merge pull request #903 from esx-framework/main
Browse files Browse the repository at this point in the history
sync
  • Loading branch information
jbdevic authored Feb 19, 2023
2 parents 23c29f5 + 0e53b30 commit c5442df
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 c5442df

Please sign in to comment.