You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifqbx.string.trim(GetVehicleNumberPlateText(veh)) ==qbx.string.trim(props.plate) then
315
+
localcurrentOwner=NetworkGetEntityOwner(veh)
316
+
assert(currentOwner==owner, ('Owner changed during vehicle init. expected=%s, actual=%s'):format(owner, currentOwner))
317
+
--- check that the plate matches twice, 100ms apart as a bug has been observed in which server side matches but plate is not observed by clients to match
318
+
ifplateMatchedthen
319
+
returntrue
320
+
end
321
+
plateMatched=true
322
+
Wait(100)
323
+
end
324
+
end, 'Failed to set vehicle properties within 1 second', 1000)
325
+
end)
326
+
ifsuccessthen
327
+
break
328
+
else
329
+
DeleteEntity(veh)
330
+
attempts+=1
331
+
end
332
+
else
333
+
break
334
+
end
335
+
end
336
+
337
+
ifattempts==3then
338
+
error('unable to successfully spawn vehicle after 3 attempts')
0 commit comments