-- Just an example you can edit to give keys to spawned vehicles
RegisterNetEvent("missions_creator:entitySpawned", function(entityType, entity)
if(entityType == "vehicle") then
local plate = GetVehicleNumberPlateText(entity)
TriggerEvent("GIVEKEYS", plate)
end
end)